从 TabBar 视图使用模态视图

我总是收到以下错误:来自调试器的错误:与此帧相同的上一帧(gdb 无法展开超过此帧)

我有一个使用 TabBar 的应用程序。从我需要显示的 TabView 之一 a 以模式方式查看。我尝试:

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
有帮助吗?

解决方案

检查NIB文件中的所有连接。在我更改了IBOutlet变量的名称但忘记调整NIB之后,我收到了同样的错误。这打破了ViewController和NIB之间的连接。

其他提示

对不起。这个问题涉及到我的错误。我的 nib 文件有问题 装载。一旦我修复了 NIB,模态视图就会加载:

[self.tabBarController PresentModalViewController:gmailController 动画:YES];

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top