In the app FIRSTViewController is initial View Controller set from storyboard. Login, Register, etc option available there. Login screen is presented from it:
let destVC = self.storyboard?.instantiateViewControllerWithIdentifier("LoginIdentifier")
self.presentViewController(destVC!, animated: true, completion: nil)
When user logged in successfully, redirect it to TabViewController:
let desViewController = selfVC.storyboard!.instantiateViewControllerWithIdentifier("UITabBarController") as! UITabBarController
UIApplication.sharedApplication().keyWindow?.rootViewController = desViewController
Above code is working fine, but issue is: When redirection to tab view is happening, initial view controller(FIRSTViewController) is display for one or half second before display tabbar.
So, my question is: How can i prevent initial view controller from display?