presentViewController在iOS8中崩溃

时间:2014-07-30 14:07:35

标签: uiviewcontroller ios8 uikit

我正在将我的应用更新为iOS8

调用presentViewController

时,我的应用程序崩溃了
UIViewController *vc = self.tmcWindow.rootViewController;
UIStoryboard *myboard = [UIStoryboard storyboardWithName:@"MyStoryboard" bundle: nil];

UIViewController *controller = (UIViewController *)[myStoryboard instantiateViewControllerWithIdentifier:@"AnotherViewController"];
[vc presentViewController:controller animated:NO completion:nil];

iOS7中工作正常。

知道可能是什么问题吗?

0 个答案:

没有答案