2011-08-01 88 views
0

我正在制作一个使用大量视图的应用程序。在它们之间导航我正在使用这两行代码:使用modalViewControllers切换视图

[self presentModalViewController:nameOfView animated:YES];  
[self.parentViewController dismissModalViewControllerAnimated:YES]; 

分散在我的代码的各个部分。这工作正常。但是,我无法打开使用presentModalController代码打开的视图。例如,如果我有一个打开表视图的主视图,我无法从didSelectRowAtIndex方法打开一个详细视图。 (SIGABRT)

HELP !!

+0

你能展示更多的代码,因此它更容易理解你的问题吗? –

回答

0

你想使用UINavigationController。阅读文档。这里也有大量的教程