我想創建類似下面的內容。 RootView沒有TabBar,從第二個視圖中應該有TabBar。UITabBarController問題
我所目前做的是,我使用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
與tabBarController從SecondViewController?
請給我一個手
-1。無需將根視圖控制器更改爲UITabBarController。 – ozz