在 TabBar 视图中使用模态视图
我总是收到以下错误:来自调试器的错误:上一帧与此帧相同(gdb 无法展开超过此帧)
我有一个使用 TabBar 的应用程序。从其中一个 TabViews 我需要以模态方式显示一个视图。我尝试:
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