How do I change the Navigation Bar color in iOS 7?
Basically I want to achieve something like the Twitter Nav Bar (updated Twitter for iOS7
that is). I embedded-in a nav bar atop a view controller
. All I want is to change the nav bar color to light blue along with the utility bar at the top. I can't seem to find an option in my storyboard
.
It's actually easier than the answers I've seen here:
I hope this helps somebody. I didn't like the answers I saw. I like to keep my code as clean as possible. Not saying that it's wrong to do it programmatically, but there are people out there like me....this is for you guys.
If you need to support ios6 and ios7 then you get that particular light blue using this in your UIViewController:
Add only This code in your
ViewContorller
or in yourAppDelegate
This question and these answers are helpful. With them I was able to set my desired dark blue
navigationBar
color with white title and button text.But I also needed to change the clock, carrier, signal strength, etc. to white. Black just didn't contrast enough with the dark blue.
I may have overlooked that solution in one of the previous answers, but I was able to make that change by adding this line to my top level
viewController
'sviewDidLoad
:For Color :
For Image