Skip to content

Instantly share code, notes, and snippets.

@tpitale
Last active December 30, 2015 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tpitale/7807091 to your computer and use it in GitHub Desktop.
Save tpitale/7807091 to your computer and use it in GitHub Desktop.
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