What is the default background color of the navigation bar in iOS 7? What is the default background color of the navigation bar in iOS 7? ios ios

What is the default background color of the navigation bar in iOS 7?


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];


Swift 5

Nav bar color in light appearance:

UIColor(red: 0.969, green: 0.969, blue: 0.969, alpha: 1.0)


To get the tint color of a navigation bar, do this:

[aNavbar barTintColor]

By using this when you set the background color of your menu, you will not have to change it in case you change your navigation bar tint.


matomo