1. Swift / Говнокод #20854

    −677

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 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
        }

    давайте слой зафигачим на окно

    Запостил: grampe, 18 Августа 2016

    Комментарии (15) RSS

    Добавить комментарий