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
.
Doing what the original question asked—to get the old Twitter's Nav Bar look, blue background with white text—is very easy to do just using the Interface Builder in Xcode.
That should get you what you want. Here is a screenshot that would make it easier to see where to make the changes.
Note that changing only the Bar Tint doesn't change the text colour in the Navigation Bar or the Status Bar. The Style also needs to be changed.
In
viewDidLoad
, set:Change (
blueColor
) to whatever color you'd like.In iOS 7 you must use the -barTintColor property:
In a Navigation based app you can put the code in AppDelegate. A more detailed code could be: