我通过从moreNavigationController
.
我找不到错误,它一定是一个简单的错误。
TabBarViewController
我在 IB 中创建了一些将它与我的TabBarViewController
.
这是代码:
TabBarViewController.h:
#import <UIKit/UIKit.h>
@interface TabBarViewController : UITabBarController <UINavigationControllerDelegate, UITabBarControllerDelegate>
@end
TabBarViewController.m:
#import "TabBarViewController.h"
@interface TabBarViewController ()
@end
@implementation TabBarViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
self.delegate = self;
[self.moreNavigationController.navigationBar setBarStyle:UIBarStyleBlackOpaque];
[self.moreNavigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"navbar.bg.png"] forBarMetrics:UIBarMetricsDefault];
[self.moreNavigationController.navigationBar.topItem setRightBarButtonItem:nil];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
编辑按钮仍然存在:/