- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let rootViewController = LAMainViewController(nibName: nil, bundle: nil)
let navigationController = LANavigationController()
let gradientLayer = CAGradientLayer()
gradientLayer.colors = [UIColor.blackColor().CGColor, UIColor(hexString: "330033", alpha: 1)!.CGColor]
gradientLayer.locations = [0, 1]
gradientLayer.frame = window!.frame
navigationController.viewControllers = [rootViewController]
window!.rootViewController = navigationController
window!.makeKeyAndVisible()
window!.layer.insertSublayer(gradientLayer, atIndex: 0)
return true
}