Can anyone tell me the RGB for the default iPhone navigation bar blue? I know that you can normally set the default color by setting
self.navigationBarTintColor = nil;
However, that doesnt work in this case, so I need to set the exact blue.
Thanks for your answer, Doonot
Hi, in ios, the default height of navigation bar is 44 pts.
A navigation bar appears at the top of an app screen, below the status bar, and enables navigation through a series of hierarchical app screens. When a new screen is displayed, a back button, often labeled with the title of the previous screen, appears on the left side of the bar.
Change the Bar StyleA user changes the navigation bar's style, or UIBarStyle , by tapping the “Style” button to the left of the main page. This button opens an action sheet where users can change the background's appearance to default, black-opaque, or black- translucent.
You right : setting tintColor property
to nil
is the good way to set the default blue color.
But in order to set a tintColor
you have to do like that :
self.navigationController.navigationBar.tintColor = nil;
[UIColor colorWithHue:0.6 saturation:0.33 brightness:0.69 alpha:0]
is a tint very close to the original -- I do see a slight difference though, when compared to the default.
Source: What is the default color for navigation bar buttons on the iPhone?
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