Skip to content

Instantly share code, notes, and snippets.

@Omnipresent
Last active August 29, 2015 13:57
Show Gist options
  • Save Omnipresent/9631891 to your computer and use it in GitHub Desktop.
Save Omnipresent/9631891 to your computer and use it in GitHub Desktop.
class MainController < UIViewController
....
def display_login
animation = CATransition.animation
animation.setDuration(1)
animation.setType("kCATransitionFade")
self.view.layer.addAnimation(animation, forKey:nil)
@login = LoginController.alloc.init
@login.delegate = self
self.presentViewController(@login, animated:false, completion:nil)
end
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment