2009-06-16 72 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];