我试图用 BCTabBar 之类的动画制作 CustomTabBar
我在 AppDelegate 中编写了这段代码
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch. tabBarController.delegate = self;
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.tabBarController = [[BCTabBarController alloc] init];
self.tabBarController.viewControllers = [NSArray arrayWithObjects:[[UINavigationController alloc]
initWithRootViewController:[[ProfileViewController alloc] init]], [[ChargeViewController alloc] init],
[[OffersViewController alloc] init],
[[ContactUsViewController alloc] init],
nil,nil];
[self.window addSubview:self.tabBarController.view];
[self.window makeKeyAndVisible];
return YES;
}
它工作正常但我想删除 RootViewController 中的 NavigationBar 我能做什么?