I have a rootviewcontroller and a loginviewcontroller. As soon as my app has finished loading up, I would like the rootviewcontroller to load the loginview associated with the loginviewcontroller. This is because the very first screen will be the user login…..
How is this possible?
The application flow should be as follows:
rootViewController —–immediately loads—–> loginviewcontroller ——-user logs in——–> taken to mainmenuviewcontroller
The rootviewcontroller contains all the other controllers because it essentially holds global variables that store the results of processes carried out by other objects…
It depends on your overall UI architecture.
Without having much information, given the fact that it is a login view, I would push it as a modal view. Look at this document for more info.
In short, you can call
presentModalViewController:animated:on yourrootviewcontrollerand pass it theloginviewcontroller. The login view controller will then be shown on top of the root view controller.You should provide a way for your login view controller then to be dismissed and return control to the root view controller.