使用TabBar视图中的模态视图
我总是收到以下错误: 调试器出错:上一帧与此帧相同(gdb无法在此帧之外展开)
我有一个使用TabBar的应用程序。从我需要显示的其中一个TabView 一个模态的视图。我试试:
if(self.gmailController == nil) {
self.gmailController =
[[GMailViewController alloc] initWithNibName:@"GMailView" bundle:nil];
}
[[self.navigationController]
presentModalViewController:gmailController animated:YES];
////////
And I have tried:
[self.parentViewController
presentModalViewController:gmailController animated:YES];
and
[self.tabBarController presentModalViewController:gmailController animated:YES];
and
[self presentModalViewController:gmailController animated:YES];
Thanks for reading! Any comments welcome.
Mark
答案 0 :(得分:1)
检查NIB文件中的所有连接。在我更改了IBOutlet变量的名称但忘记调整NIB之后,我收到了同样的错误。这打破了ViewController和NIB之间的连接。
答案 1 :(得分:0)
对不起这个问题涉及我的错误。我的nib文件有问题 加载。一旦我修复了NIB,模态视图就加载了:
[self.tabBarController presentModalViewController:gmailController animated:YES];