そのため、他のビューに移動するためのボタンを配置したタブバーアプリケーションがあります。
そのため、FirstView.hiにはそれがあります
IBOutlet ContactMainViewController *contactMainViewController;
そしてそれ
-(IBAction)gotoContactMainViewController;
私のFirstView.miには
-(IBAction)gotoContactMainViewController {
[self presentModalViewController:contactMainViewController animated:YES];
}
そして、.hで作成したSecondViewで
-(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]
ご協力いただきありがとうございます !