erotsppa
erotsppa

Reputation: 15071

How to have custom color for tabbars and navbars?

How to set custom color for the tabbars and navbars like in this app? http://itunes.apple.com/us/app/ifood-assistant-by-kraft/id296246161?mt=8

Upvotes: 0

Views: 129

Answers (2)

runmad
runmad

Reputation: 14886

The tab bar they have used in the application you're linking to is a custom one. Notice how the tabs have different widths (when selected, the Shopping List tab is wider than Home for example). To my knowledge, you cannot change the colour of the UIKit tab bar.

The navigation bar is definitely also a custom one. The back buttons and the email button does not look the same shape as the UIKit ones.

Use the code above to change the colour of your navigation bar.

Upvotes: 1

James
James

Reputation: 5820

You can edit the tintColor property on the navigation controllers like so:

myControllerController.navigationBar.tintColor = [UIColor orangeColor];

Upvotes: 1

Related Questions