Changing the root controller of a UINavigation controller

I recently ran into a little problem with storyboards. I have a UINavigationController , than there is a link to the MainView RootViewController (it has all the buttons leading to the rest of my application). However, I tried to modify the RootViewController so that I could enable a persistent login, rather than logging into UIWebview. When I created the new ViewController login form as the root, the buttons on my MainView simply stop working.

I also set the UINavigationController as the initial view controller. Any ideas on what needs to be done here?

I know that I can just launch the storyboard login screen and program it programmatically, set it to a logical condition (loginDidSucceed). However, I am confused about why this behavior occurs in StoryBoard.

Solution Sent from: Present ViewSontroller Splash / Login with StoryBoard

Thanks for the help and efforts!

+4
source share
1 answer

I think the main problem here is that the goal of your buttons is the old instance of the view controller; when he goes out of scope, their goal no longer exists.

+1
source

All Articles