4

I recently encountered a small problem with Storyboards. I have a UINavigationController than has a relationship with the MainView RootViewController(This one has all the buttons leading to the rest of my app). However, I tried to change the RootViewController so that I could enable persistent login rather than a UIWebview Login. When I made the new Logon Form ViewController as the Root, the buttons on my MainView simply stop working.

I also have set the UINavigationController as the initial View Controller. Any ideas on what has to be done here?

I do know that I can simply have the logon screen in the storyboard and call it programmatically, set it to advance on a boolean condition(loginDidSucceed). However, I am confused on why this behavior happens in StoryBoard.

Solution Referred from: Present Splash/Login ViewController With StoryBoard

Thanks for the Help and Effort!

Community
  • 1
  • 1
chaitanya.varanasi
  • 960
  • 1
  • 9
  • 26
  • The post you are referring to does not suggest changing the root view controller into the login. Instead, it suggests that the login form is shown as a modal ViewController on top of your normal VC hierarchy. Pardon me if I misunderstood something. – Krumelur Jul 30 '12 at 21:23
  • Yeah I know. I just put it there so that people will not suggest that I can do that. I simply referred to solution there to let people who answer this question know that I do know that alternative exists. Thanks for Checking though @Krumelur – chaitanya.varanasi Jul 30 '12 at 21:40

1 Answers1

1

I think the principal problem here is that the target of your butttons is the old view controller instance; when it goes out of scope their target no longer exists.