Skip to content

Instantly share code, notes, and snippets.

@antranapp
Created May 3, 2015 15:59
Show Gist options
  • Save antranapp/89b1ebef5a0a984140a3 to your computer and use it in GitHub Desktop.
Save antranapp/89b1ebef5a0a984140a3 to your computer and use it in GitHub Desktop.
[iOS] Change title and tint color for navigation controller
self.navigationController?.navigationBar.barTintColor = UIColor.redColor()
self.navigationController?.navigationBar.translucent = false
self.navigationController?.navigationBar.tintColor = UIColor.whiteColor()
self.navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment