Skip to content

Instantly share code, notes, and snippets.

@linktoming
Created December 30, 2015 11:16
Show Gist options
  • Save linktoming/4742d4a8acc13d8a2eea to your computer and use it in GitHub Desktop.
Save linktoming/4742d4a8acc13d8a2eea to your computer and use it in GitHub Desktop.
solid color navigation bar
[self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
[self.navigationController.navigationBar setBarTintColor:[UIColor greenColor]];
self.navigationController.navigationBar.translucent = NO;
[self.navigationController.navigationBar setShadowImage:[UIImage new]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment