Advertisement
Guest User

Untitled

a guest
Sep 5th, 2014
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     func didLogin() {
  2.        let storyBoard = UIStoryboard(name: "Main", bundle: nil);
  3.        let mainViewController = storyBoard.instantiateViewControllerWithIdentifier("mainViewControllerSB") as MainViewController
  4.         UIView.transitionWithView(
  5.             window!,
  6.             duration: 0.5,
  7.             options: UIViewAnimationOptions.TransitionFlipFromRight | UIViewAnimationOptions.AllowAnimatedContent | UIViewAnimationOptions.LayoutSubviews,
  8.             animations: {
  9.                 self.window!.rootViewController = mainViewController
  10.             },
  11.             completion: nil
  12.         )
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement