views:

81

answers:

2

If I append the @2x suffix to my own images, will iOS 4 automatically replace my images with the Retina compatible ones, or does that only apply to Apple defined images? (Icons, for example.)

+4  A: 

Yes, of course. If you display a myimage.png in your app, you may add a retina ready [email protected], so it is shown on retina devices.

See this guide for further information.

Phlibbo
+1  A: 

From the documentation:

The bundle- and image-loading routines automatically look for image files with the @2x string when the underlying device has a high-resolution screen.

So using for example [UIImage imageNamed:@"MyImage.png"] will automatically look for [email protected] when running on a device with retina display.

aegzorz