-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNavigationController.swift
More file actions
39 lines (31 loc) · 1.22 KB
/
Copy pathNavigationController.swift
File metadata and controls
39 lines (31 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// NavigationController.swift
// Fifica
//
// Created by Regan Bell on 2/1/16.
// Copyright © 2016 Ben Griswold. All rights reserved.
//
import UIKit
class NavigationController: UINavigationController {
override init(rootViewController: UIViewController) {
super.init(rootViewController: rootViewController)
navigationBar.barTintColor = greenColor
navigationBar.tintColor = UIColor.whiteColor()
navigationBar.opaque = true
navigationBar.translucent = false
navigationBar.titleTextAttributes = [NSFontAttributeName : UIFont(name: "AvenirNext-DemiBold", size: 14)!, NSForegroundColorAttributeName : UIColor.whiteColor()]
}
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
}
required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") }
func cancel() {
dismissViewControllerAnimated(true, completion: nil)
}
override func viewDidLoad() {
view.backgroundColor = greenColor
}
override func preferredStatusBarStyle() -> UIStatusBarStyle {
return .LightContent
}
}