开发者

switching views with modalViewControllers

I'm making an app that uses a lot of views. To navigate between them I'm using these two lines of code:

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

scattered in various parts of my code. This works fine. However, I cannot open a view from a view that I opened using the prese开发者_JS百科ntModalController code. For example, if I have a main view that opens up table view, I cannot open a detail view from the didSelectRowAtIndex method. (SIGABRT)

HELP!!


You want to use a UINavigationController. Read the documentation. There are tons of tutorials on this as well

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜