开发者

switching views with modalViewControllers

开发者 https://www.devze.com 2023-03-25 16:40 出处:网络
I\'m making an app that uses a lot of views.To navigate between them I\'m using these two lines of code:

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

精彩评论

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