2009-06-16 74 views
0

从的TabBar查看使用模式的看法使用模式的看法iPhone从的TabBar查看

我总是得到以下错误:从调试器 错误:上一帧相同,该框架(GDB不能放松过去,这架)

我有一个应用程序使用TabBar。从其中一个TabView中,我需要以模态方式显示 a View。我尝试:

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 

回答

1

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

0

我很抱歉。这个问题涉及我的错误。我在加载nib文件 时遇到了问题。一旦我修复了NIB,Modal View加载了:

[self.tabBarController presentModalViewController:gmailController animated:YES];