我通過改變主故事板沒有禁用故事板。而且我已經重寫了一切,所以我不需要故事板並且它可以正常工作。但是在控制檯日誌中,應用程序窗口在應用程序啓動結束時應該有一個根視圖控制器。 我可以忽略這條消息嗎?他們會在提交後批准我的應用程序? 的didFinishLaunchingWithOptions:「應用程序窗口預計將有在應用程序啓動的最後一個根視圖控制器」發生後,我禁用故事板
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.tabBarController = [[AKTabBarController alloc] initWithTabBarHeight:65];
SubscribeViewController *sub = [[SubscribeViewController alloc] initWithNibName:nil bundle:nil];
UINavigationController *navControlelr = [[UINavigationController alloc] initWithRootViewController:sub];
NewHomeViewController *home = [[NewHomeViewController alloc] initWithNibName:nil bundle:nil];
UINavigationController *homeNav = [[UINavigationController alloc] initWithRootViewController:home];
ReceivedPushViewController *receivedPush = [[ReceivedPushViewController alloc] initWithNibName:nil bundle:nil];
MoreViewController *more = [[MoreViewController alloc] initWithNibName:nil bundle:nil];
NSMutableArray *viewControllers = [NSMutableArray arrayWithArray:@[homeNav, navControlelr, receivedPush, more]];
[self.tabBarController setViewControllers:viewControllers];
[self.window setRootViewController:self.tabBarController];
[self.window makeKeyAndVisible];
return YES;
}
重置模擬器和檢查一次。 – LittleIDev 2013-05-08 11:44:27
@Jyotishree不,消息仍然顯示。 – 2013-05-09 02:33:12