Mathan Kumar
Mathan Kumar

Reputation: 29

screen label color varied between iphone simulator and device?

In my application, I set Red(34),Green(7),Blue(107) values for my UILabel. When I run in iPhone simulator it shows exact color what I need. But when I run this in iPhone device it shows some color variation compared to iPhone simulator. But when I take screenshot from iPhone device it shows exact color. I am really confused. I can't get my color varied screen shot.

So can anyone test this with your sample application(using label) , and provide me a your comments and feedback?

Upvotes: 1

Views: 467

Answers (2)

Anoop Vaidya
Anoop Vaidya

Reputation: 46543

Yes this happens, So you can not rely only by checking and getting approved by showing in Simulator. You need to check it live in iPhone.

What you can do is add some extra values and check again in iPhone

Red +(10-15), Green +20, Blue +15

This will give color near to what you want in iPhone.

Upvotes: 0

user529758
user529758

Reputation:

The problem is that the precise physical capabilities of the display of an iPhone and the Mac greatly differ. This is not a programming/software error, you can't really do anything about it.

Upvotes: 1

Related Questions