Created
April 13, 2013 10:32
-
-
Save ys/5377886 to your computer and use it in GitHub Desktop.
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 | |
def application(application, didFinishLaunchingWithOptions:launchOptions) | |
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) | |
@window.makeKeyAndVisible | |
if User.current && User.current.api_key | |
init_deck | |
else | |
login_controller = LoginController.new | |
login_controller.delegate = self | |
@window.rootViewController = login_controller | |
end | |
end | |
def init_deck | |
deck_controller = DeckController.alloc.init | |
puts deck_controller.class | |
@window.rootViewController = deck_controller | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment