I am designing a custom button with that requires me to overlay a UIButton
on top of a UIImageView
. The UIImageView
uses a [UIImage stretchableImageWithLeftCapWidth:topCapHeight:]
image and the UIButton
has a background color with a pattern image [UIColor colorWithPatternImage:[UIImage imageNamed:@"buttonPattern.png"]]
The problem I am facing is that on iPhone 4, the images from the UIButton
and the UIImageView
appear to have slightly different colors although they should match. Testing the same thing on an iPhone 3GS shows normal results without the color difference.
This image shows the difference:
as you can see it looks fine on the 3GS. On the retina display you can clearly see the difference in color. I even tried using the low res images (from the 3GS) on the retina display, the colors were still showing differently. is this a bug in retina display devices? has anyone faced this issue before?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…