我想创建类似下面的东西。RootView 没有 TabBar,从第二个视图看应该有 TabBar。
我目前所做的是,我正在UINavigationController
用作控制器 calass
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIViewController *rootController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
navigationController = [[UINavigationController alloc] initWithRootViewController:rootController];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[self.window addSubview:navigationController.view];
[self.window makeKeyAndVisible];
return YES;
}
但是如何使用UITabBar
SecondViewController 中的 tabBarController?