UILabel color and XIB font size changes

advertisements

I'm having some issues with an app i'm working on.

It used to work just fine, but now I noticed that many of the UILabel I have in my XIB have a font and color reset.

For example, if I set a white or red color in my XIB, it appears black when I run my app.

If I set the color programmatically, it will work fine.. But that would mean that I have to reset the color for all the labels I have in my XIB files...

As I said, it used to work just fine... I compared a XIB file with an older revision using SVN, it's the same file, but the labels are still appearing with a changed color...

Do you have any ideas on how to solve this ?

Note : I use Xcode 5.1.1 and the bug only occurs when I test on a device with iOS 5.


please check whether you set the appearance somewhere or not.

[UILabel appearance] setBackgroundColoer:

It is better to setup your UI component appearance attribute programmatically