Skip to content

Instantly share code, notes, and snippets.

@tpitale
Last active December 30, 2015 09:09
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
setup_window
end
def window
@window ||= UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
end
private
def setup_window
window.rootViewController = UIViewController.new
window.makeKeyAndVisible
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment