I'm asking this in the context of the common scenario of having a modal "Log In" view, and then showing the main view of the app when the log in is successful and the view is dismissed (as it can be seen in Twitter, Evernote, and so on..), instead of showing again the "welcome" view that presented the login view. I don't find any example of how can I achieve this.
Thanks!
EDIT: What I want to achieve is clearly shown in Instagram app. If you're not logged in, you are shown a welcome view with the logo and a table with "Register" and "Sign In" cells. From there, you can navigate to the corresponding register/sign in view. If you sign in, the "Sign In" view is dismissed with animation and the app's main view is shown below.
I tried to make my main view the rootViewController
of my app and then to present an UINavigationController
with the welcome view if the user is not logged in, but this way the main view is always shown first. Surprisingly, I don't find any example of handling this scenario and I think this is a very common one (having a welcome view if login needed and app's main view being only shown if login is successful or it was already done). I'd really appreciate some help and/or any example code.
Thanks again
EDIT2: I moved this particular question to Managing view controllers in an app where sign up required