Is there a way to change Views in iOS without using a UINavigationController?

I have a login page at the beginning of my application that I do not want on the presentation stack. Is there a way to load my first view after login after login without using UINavigatorController?

Is there a better way to do this? Should I use 2 UINavigationControllers? Is there a way to change RootViewControllerfor a UINavigationController?

+5
source share
2 answers

Yes, you can change the root controller of the window. Set the window property rootViewControllerto the new controller, and you're done. Do not forget that the first controller (the one you delete) will not receive messages viewWillDisappear:and viewDidDisappear:. Send them before switching controllers if you are interested in them.

+8
source
0
source

All Articles