【发布时间】:2011-07-21 18:31:12
【问题描述】:
我有一个应用程序/游戏,我想在显示任何形式的 UITabBarController 之前显示一系列视图控制器(即:开始游戏、加载游戏等)。
流程如下:
- 启动应用委托
- 启动我的视图控制器系列
- 仅当按下开始游戏时启动/显示 UITabBarController。
我的 UITabBarController 绑定到应用程序委托,我当前的代码是这样的:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
SplashScreenVC *splashScreenVC = [[SplashScreenVC alloc] initWithNibName:@"SplashScreenVC" bundle:[NSBundle mainBundle]];
UINavigationController *firstView = [[UINavigationController alloc] init];
[firstView presentModalViewController:splashScreenVC animated:NO];
[firstView release];
[splashScreenVC release];
[self.window addSubview:[tabController view]];
return YES;
}
我尝试将启动画面作为模式视图控制器启动,但这似乎不起作用。
我也尝试将它作为initWithRootViewController 启动——但无论我做什么,UITabBar 仍然会启动,而且我从未看到模式视图。
那么,如何在 tabBarController 视图之前启动东西、视图等?
非常感谢
【问题讨论】:
标签: uiviewcontroller uitabbarcontroller