I would like to set the background color of a menu to that of the navigation bar. What is the best way to do this?
One feature you've probably never thought to customize is the navigation bar. It's the black bar at the bottom of the screen that holds the Home, Back, and Recents buttons.
A navigation bar appears at the top of an app screen, enabling navigation through a hierarchy of content. A navigation bar also provides a natural place to display a screen's title — helping people orient themselves in your app or game — and it can include controls that affect the screen's content.
Swift 3.0 + You can set the barTintColor to nil to restore to the default white color.
The default navbar color in iOS 7 is [UIColor colorWithRed:(247.0f/255.0f) green:(247.0f/255.0f) blue:(247.0f/255.0f) alpha:1];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With