Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UINavigationBar background color not the exact UIColor I set it to

Please look at the screenshot below.

I set all the tint colors from the same UIColor object for the UINavigationBar, search bar and toolbar at the bottom. But for some reason the navigationbar color is slightly different. What could be the reason for this?

Thanks..

screenshot

like image 584
özg Avatar asked Apr 03 '14 16:04

özg


1 Answers

The difference between your navigation bar and search bar is because the navigation bar is translucent,the system will apply a default alpha value for the navigation bar.

Try self.navigationController.navigationBar.translucent = NO;

like image 97
Danyun Liu Avatar answered Oct 08 '22 19:10

Danyun Liu