我的应用程序在 iPad 和 iPhone 上都可以在 iOS 5.1 上正常运行。在 iOS 6 中,应用程序在 iPad 上运行良好,但在设置window.rootViewController = navigationViewController
. 我已经设置了异常断点,它在application didFinishLaunchingWithOptions
. 我什至尝试添加它,[window addSubView:navigationViewController.view]
但没有运气。有没有人遇到过类似的问题。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
rootViewController = [[SpringboardViewController alloc] initWithNibName:@"SpringboardViewController" bundle:nil];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:rootViewController];
self.window.rootViewController = nav;
self.window makeKeyAndVisible];
return YES;
}