ios - Dismissing View controllers and then presenting them -


I have an application that has 3 view controllers.

First presents each other and the second one presents the third one then I have a button that I want to take back to the first view controller. This button works, however, I try to present another view controller from the first time and again to another view controller again. The second view controller works fine, but the 3D visual controller does not work. I get an error:

WARNING: Attempting to present on whose view windows are not in the hierarchy!

The first view controller is the main menu of the game, the second view controller is where the game is and the third view controller is the last result screen. Is there a better way to do this from my way?

Is anyone's solution? thank you in advanced.

You must use a navigation controller. Now what you are doing is pushing ideas into an unlimited loop.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -