Skip to content

Instantly share code, notes, and snippets.

@niftycode
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niftycode/86611b583c8b2d60957c to your computer and use it in GitHub Desktop.
Save niftycode/86611b583c8b2d60957c to your computer and use it in GitHub Desktop.
HowTo change barStyle and tintColor of the NavigationBar in Swift
override func viewDidAppear(animated: Bool) {
var navBar = self.navigationController?.navigationBar
navBar?.barStyle = UIBarStyle.Black
navBar?.tintColor = UIColor.yellowColor
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment