在故事板中,我的主菜单上有一个名为showCountdownViewControllerPressed的按钮。呈现XIB视图冻结
这个按钮应该显示我的XIB叫做TimerViewController。
但是,当我运行该应用程序,它冻结按钮按下,然后一段时间后崩溃的应用程序。
我把这个动作在我CRViewController.m(我的主菜单)[我也有进口TimerViewController.h在此文件]
- (IBAction)showCountdownViewControllerPressed:(id)sender {
NSLog(@"showTimerViewController");
TimerViewController *timeController = [[TimerViewController alloc]
initWithNibName:@"TimerViewController" bundle:nil];
[self presentViewController:timeController animated:YES completion:nil];
你得到了什么错误? – iBhavin
这就是奇怪的事情,我没有得到任何错误。它只是说Xcode意外退出。当我在测试设备上运行它时,它会冻结,然后崩溃。然而,我得到了NSLog声明。 –
'TimeViewController'的内容是什么,看起来内存使用率太高,在这种情况下应用程序可能会崩溃。 – gabbler