Como sería con swift?
Hector Miuler M. G.
1

Using Swift 2.1.1 and Xcode 7, the following lines do the magic:

let vc: UIViewController = UIViewController.init();
self.window = UIWindow.init(frame: UIScreen.mainScreen().bounds);
self.window?.rootViewController = vc;
self.window?.backgroundColor = UIColor.whiteColor();
self.window?.makeKeyAndVisible();
return true