I Am Doing this from AppDelegate. I have two storyBoards, main storyBoard and secondStoryboard. When i set main interface to secondStoryboard from deployment info of app target, and run the project the following code works as charm.
But When i set main interface to main story board from deployment info of app target, and run the project it is Throwing the warning and the presentViewcontroller method is not working.
:( pls help ! Thanks in advance.
var storyBoard: UIStoryboard = UIStoryboard(name: "secondStoryBoard", bundle: nil)
var congratulationScreen = storyBoard.instantiateViewControllerWithIdentifier("s_id_SecondVC") as! SecondVC
var navController = UINavigationController(rootViewController: congratulationScreen)
self.window?.makeKeyAndVisible()
self.window?.rootViewController?.presentViewController(navController, animated: true, completion: nil)