【发布时间】:2012-11-08 09:40:37
【问题描述】:
我想创建如下所示的内容。 RootView没有TabBar,从第二个视图看应该有TabBar。
我目前所做的是,我使用UINavigationController 作为控制器类
- (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;
}
但是我如何在 SecondViewController 中将UITabBar 与 tabBarController 一起使用?
【问题讨论】:
标签: iphone objective-c ios