简体   繁体   中英

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:

IBOutlet UISplitViewController *splitViewController;

in AppDelegate.m: [application didFinishLaunchingWithOptions]:

[self.window setRootViewController:splitViewController];

It crashes here with the message EXC_BAD_ACCESS (code=2).

Edit : I am checking splitViewController's value, it is not 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. No more crashing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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