In Swift to change the text or top navigation are colour is not the same as UIBotton methods. The quick example below shows how to set them.
Example:
1 2 3 4 5 |
navigationController!.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor() ] navigationController!.navigationBar.barTintColor = UIColor.greenColor() navigationController!.navigationBar.tintColor = .whiteColor() |