I have a TabBarController set as starting point of my storyboard. It's custom class is set to RAMAnimatedTabBarController.
In my first tab, I check for the users login status, and if the user is not logged in, I sent him to my LoginController which is a normal UIViewController. Upon successful login, I redirect him back to my previously mentioned TabBarController. I redirect him to this tab controller in the following way from my LoginController:
let appDelegate : AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
let initialViewController = self.storyboard?.instantiateViwControllerWithIdentifier("tabBarController") as! RAMAnimatedTabBarController
appDelegate.window?.rootViewController = initialViewController
appDelegate.window?.makeKeyAndVisible()
The tab bar controller is presented but it does not respond to any event like button click or tab change.
If I re-run the application, the user is not redirected to the login page as he logged in before and now the tab bar controller works as expected.
Any idea, what might be leading to this behavior or is there anything that I am missing?
I have a
TabBarController
set as starting point of my storyboard. It's custom class is set toRAMAnimatedTabBarController
. In my first tab, I check for the users login status, and if the user is not logged in, I sent him to myLoginController
which is a normalUIViewController
. Upon successful login, I redirect him back to my previously mentionedTabBarController
. I redirect him to this tab controller in the following way from my LoginController:The tab bar controller is presented but it does not respond to any event like button click or tab change.
If I re-run the application, the user is not redirected to the login page as he logged in before and now the tab bar controller works as expected.
Any idea, what might be leading to this behavior or is there anything that I am missing?
Thank you Prerak