iphone - Retina display and [UIImage initWithData] -


I need to start images from raw data downloaded from a server that has an image based on the type of iPhone client Provides the correct size of

I know that I should set scale value 2.0 on the 640x960 display, although this is only a readable asset and can not be set during init when using initWithData.

Any thoughts?

I do not know anything that you can embed in image data to embed itself The phone is a @ 2x image, but something like this should be done:

  UIImage * img = ...; IMG = [UIImage imageWithCGImage: img.CGImage Scale: 2 Orientation: img.imageOrientation];  

Comments