Skip to content

Instantly share code, notes, and snippets.

@duemunk
Last active August 29, 2015 14:05
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 duemunk/9a578e5161e1707f2252 to your computer and use it in GitHub Desktop.
Save duemunk/9a578e5161e1707f2252 to your computer and use it in GitHub Desktop.
iOS Application without storyboard
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {
window = UIWindow(frame: UIScreen.mainScreen().bounds)
if let window = window {
window.backgroundColor = UIColor.whiteColor()
window.makeKeyAndVisible()
window.rootViewController = ViewController()
}
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment