Ramotion / animated-tab-bar

:octocat: RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion
https://www.ramotion.com/animated-tab-bar-ios-app-development-ui-library/
MIT License
11.13k stars 1.33k forks source link

RAMAnimatedTabBarController non responsive #88

Closed preraksola closed 8 years ago

preraksola commented 8 years ago

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?

Thank you Prerak