简体   繁体   English

在iOS 8上设置rootViewController崩溃

[英]Setting rootViewController crashes on iOS 8

It all worked OK in iOS 6 and 7. Without any change made now it is crashing in iOS 8. Declared in AppDelegate.h: 在iOS 6和7中一切正常。现在不做任何更改,它在iOS 8中崩溃。在AppDelegate.h中声明:

IBOutlet UISplitViewController *splitViewController;

in AppDelegate.m: [application didFinishLaunchingWithOptions]: 在AppDelegate.m中:[应用程序didFinishLaunchingWithOptions]:

[self.window setRootViewController:splitViewController];

It crashes here with the message EXC_BAD_ACCESS (code=2). 它在此处崩溃,并显示消息EXC_BAD_ACCESS(代码= 2)。

Edit : I am checking splitViewController's value, it is not nil. 编辑 :我正在检查splitViewController的值,它不是nil。

Please share with me any info that could be relevant. 请与我分享任何可能相关的信息。 Thanks! 谢谢!

It got resolved itself. 它自己解决了。 After restarting XCode 6, my app runs as expected. 重新启动XCode 6后,我的应用程序将按预期运行。 No more crashing. 不再崩溃。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM