Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOs7 tab bar changes

At ios 6.1 and previous I have like this:

ios6

I need to add support to iOS 7 ( and keep 5.1, 6.0, 6.1) but at iOS 7 it look like this:

ios7

At xib file my settings at tab bar:

tab bar

At tab controller:

tab controller

What to change, where to have a similar look as previous versions?


2 Answers

You can change the color of the highlighted icons by setting the tintColor of the tabBar. Like so:

// Example UITabBarController
UITabBarController *tabVC = [UITabBarController alloc] init];

tabVC.tabBar.tintColor = [UIColor yellowColor];
like image 162
Eric Allam Avatar answered Dec 30 '25 15:12

Eric Allam


Based on Eric answer I have solved the problem like this:

enter image description here

Observe: the Translucient is unchecked!

And looks like this:

enter image description here

Observe: The text color is yellow instead of white.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!