在故事板中,我的主菜單上有一個名爲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