所以我有一个标签栏应用程序,我已经把一个按钮去其他视图。当我尝试去其他视图模拟器崩溃
所以在FirstView.hi有
IBOutlet ContactMainViewController *contactMainViewController;
和
-(IBAction)gotoContactMainViewController;
在我FirstView.mi有
-(IBAction)gotoContactMainViewController {
[self presentModalViewController:contactMainViewController animated:YES];
}
,并在我的SecondView,我在创建.h
-(IBAction)goBack;
,并在.M
-(IBAction)goBack {
[self dismissModalViewControllerAnimated:YES];
}
该应用程序运行正常,但是当我点击按钮,一条绿线过来
[self presentModalViewController:contactMainViewController animated:YES];
说"Thread 1: Program received signal: "SIGABRT"
,这在控制台: terminate called throwing an exception[Switching to process 3908 thread 0xb303]
感谢您的帮助!
谢谢!那工作! :) – AlexF
好AlexF :),但问题不是很清楚,但我预测它,并试图给你答案。我只是想提高我的答案一点点。 –