Reputation: 1263
i build a View with ios7 programamtically and everythings works just fine. But then i tested it with ios 6 and half of the View is broken and i don´t know why. I do not use any "ios7 only" things!!
Screenshot from ios7 (everything is fine):
Screenshot from ios6 (strange things happen here):
It is the same Code, UITextViews,UILabels and one UISegmentedControl. Any Ideas??
Upvotes: 0
Views: 521
Reputation: 3041
It looks like in iOS 6 your UILabels background color is defaulting to white.
Try this:
[myLabel setBackgroundColor:[UIColor clearColor]];
Upvotes: 4
Reputation: 37300
Your text isn't showing up in iOS6 because it's white text on a white background. In iOS6, UILabel backgrounds are white by default, whereas they are clear by default in iOS7; so you have to explicitly set the label's background color to clear in order to account for both cases.
Upvotes: 10