Created
January 4, 2014 12:52
-
-
Save jaunesarmiento/8255099 to your computer and use it in GitHub Desktop.
RubyMotion Tips
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
class AppDelegate | |
attr_accessor :window, :storyboard | |
def application(application, didFinishLaunchingWithOptions: launchOptions) | |
# Switch to a new rootViewController with transition | |
UIView.transitionWithView( | |
@window, | |
duration: 0.5, | |
options: UIViewAnimationOptionTransitionFlipFromLeft, | |
animations: lambda do | |
@window.rootViewController = @storyboard.instantiateViewControllerWithIdentifier("ViewController") | |
end, | |
completion: nil | |
) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment