Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let storyboard = UIStoryboard(name: "your_storyboard_name_here", bundle: nil)
- let root = storyboard.instantiateViewControllerWithIdentifier("root") as! UINavigationController
- let destination = storyboard.instantiateViewControllerWithIdentifier("main_vc")
- root.pushViewController(destination, animated: false)
- self.window?.rootViewController = root
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement