Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storyboard Global Tint UITabBar Tint changed in IOS 7.1

Have I overlooked something in just using the Global Tint to set the apps overall tint?

My App that worked in IOS 7.06 has suddenly changed today after IOS 7.1 Update.

Basic Storyboard, Tab based App with Global Tint (Orange) set in storyboard in IB.

Today updated to IOS 7.1 IPhone 5S and it is showing the standard blue tint

IPhone 4 IOS 7.06, same app TabBar tint is as it should be.

Had to set as below

[[UITabBar appearance] setTintColor:[UIColor orangeColor]];

in the TabBarControllers ViewDidLoad to correct the issue.

Could it be I have something else set incorrectly?

like image 356
Tis SaxInnit Avatar asked Mar 10 '14 23:03

Tis SaxInnit


1 Answers

This is a known bug in the 7.1 betas which was never fixed in the final release.

Like you, I have had the same problem and had to set it manually as a fix.

It is recommended that if you want to set a global tint color, to do so in -application:will/didFinishLaunchingWithOptions:. Alternatively, if you want specific colors for each view controller, to do so in prepareForSeque:.

Personally I have tried setting it in -viewWillAppear:animated: in my UINavigationController root view and it appears to work fine.

See the devforum thread here

like image 90
BytesGuy Avatar answered Nov 01 '22 00:11

BytesGuy