Call currentModalViewController twice?

I have a problem with the UIViewController # presentModalViewController being called twice. I have a modal view, and I'm trying to raise another modal view, but the second time nothing happens. I suspect he's hidden?

Does anyone else do this?

+3
source share
1 answer

You cannot imagine two modal view controllers on the same parent controller. To show the second, you must call presentModalViewController on your current modal controller (you really need to do this on the new UINavigationController, however you can present the UINavigationController as a modal controller.)

+10
source

Source: https://habr.com/ru/post/1726948/


All Articles