Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default UIColor of iPhone Navigation Bar

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

like image 271
nimrod Avatar asked Apr 01 '11 20:04

nimrod


People also ask

What is default navigation bar height iOS?

Hi, in ios, the default height of navigation bar is 44 pts.

What is iPhone navigation bar?

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.

Can you change iPhone navigation 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.


2 Answers

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;
like image 186
klefevre Avatar answered Oct 27 '22 00:10

klefevre


[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?

like image 26
antalkerekes Avatar answered Oct 26 '22 22:10

antalkerekes