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

    −678

    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

    Комментарии (14)
  2. Swift / Говнокод #16101

    −95

    1. 1
    Ждем нового раздела под язык Swift. Ожидается наплыв.

    https://developer.apple.com/swift/
    http://habrastorage.org/getpro/habr/comment_images/f80/9bd/f07/f809bdf079e06818109355db44e9430b.png
    http://habrastorage.org/getpro/habr/comment_images/45a/feb/cfe/45afebcfe01065e7bdb2b618ea045f18.png
    http://habrastorage.org/getpro/habr/comment_images/32e/c47/ae5/32ec47ae5be2bb4f540e318764c8f2ab.png
    http://habrastorage.org/getpro/habr/comment_images/d21/480/e59/d21480e59827fc1c6b93150c91fdcf90.png
    http://habrastorage.org/getpro/habr/comment_images/b30/513/b4f/b30513b4f3345b51b18565a235b6ab6a.png

    LispGovno, 03 Июня 2014

    Комментарии (170)