Last active
February 24, 2016 01:41
-
-
Save luanvuhlu/4046af103a9431e1e868 to your computer and use it in GitHub Desktop.
Set root view ios
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let userToken = result.token { | |
// Get user access token | |
let token: FBSDKAccessToken = result.token | |
let protectedPage = self.storyboard?.instantiateViewControllerWithIdentifier("ProtectedPageViewController") as! ProtectedPageViewController | |
let protectedPageNav = UINavigationController(rootViewController: protectedPage) | |
let appDelegate = UIApplication.shareApplication().delegate as! AppDelegate | |
appDelegate.window?.rootViewController = protectedPageNav | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment