Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (24 sloc) 849 Bytes
//
// AppDelegate.swift
// UIAppearanceQuestion
//
// Created by Daniel Ramteke on 7/19/16.
// Copyright © 2016 Dan Ramteke Consulting, Inc. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let window = UIWindow()
applyAppearance(window)
window.rootViewController = UINavigationController(rootViewController: ViewController())
window.makeKeyAndVisible()
self.window = window
return true
}
func applyAppearance(window: UIWindow) {
window.tintColor = UIColor.yellowColor()
UINavigationBar.appearance().barTintColor = .blackColor()
}
}