Last active
August 29, 2015 14:05
-
-
Save duemunk/9a578e5161e1707f2252 to your computer and use it in GitHub Desktop.
iOS Application without storyboard
This file contains hidden or 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
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