Skip to content

Instantly share code, notes, and snippets.

@luanvuhlu
Last active February 24, 2016 01:41
Show Gist options
  • Save luanvuhlu/4046af103a9431e1e868 to your computer and use it in GitHub Desktop.
Save luanvuhlu/4046af103a9431e1e868 to your computer and use it in GitHub Desktop.
Set root view ios
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