Retina display VS normal color display difference

I create a custom button for which you want me to put UIButtonon top UIImageView. UIImageViewuses an image [UIImage stretchableImageWithLeftCapWidth:topCapHeight:], but UIButtonhas a background color with a template image[UIColor colorWithPatternImage:[UIImage imageNamed:@"buttonPattern.png"]]

The problem I ran into is that on iPhone 4, the images from UIButtonand UIImageViewappear to be slightly different colors, although they should match. Testing the same on the iPhone 3GS shows normal results with no color difference.

This image shows the difference:

enter image description here

, 3GS. . ( 3GS) , - -. ? - ?

+5

All Articles