Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling presentModalViewController twice?

Tags:

iphone

I have an issue with UIViewController#presentModalViewController being called twice. I have a modal view, and I trying to bring up another modal view, but the second time nothing happens. I suspect it's hidden?

Anyone else ever do this?

like image 807
ZaBlanc Avatar asked Sep 14 '26 16:09

ZaBlanc


1 Answers

You can't present two modal view controllers on the same parent controller. To show a second one, you should call presentModalViewController on your current modal controller (you may actually have to do it on a new UINavigationController, however, you CAN present a UINavigationController as a modal controller.)

like image 81
Ben Gottlieb Avatar answered Sep 16 '26 08:09

Ben Gottlieb