Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retina Display Images on iPhone [duplicate]

Tags:

ios

iphone

Possible Duplicate:
How to accommodate for the iPhone 4 screen resolution?

What is the best way to include Retina Display Images on an iPhone app. Are there issues with the iPhone 3G or older iPhone with higher res images?

like image 773
Daniel Kivatinos Avatar asked Jan 26 '11 00:01

Daniel Kivatinos


People also ask

Why are my pictures duplicating on my iPhone?

Duplicate images can happen due to syncing errors or syncing folders multiple times — or simply taking too many photos of the same thing. You can remove duplicates with third-party apps (we recommend Gemini Photos) or by doing it manually. Removing duplicates allows you to free up more storage on your iPhone.

How do I get my iPhone to stop duplicating photos?

You can go to Settings > Camera > Toggle off the option Keep Normal Photo. After editing photos, it is suggested to delete original photos in time to avoid your iPhone saving too many similar photos.

Why does my IPAD duplicate photos?

If you have multiple devices trying to sync the same picture, iCloud will recognize it as a duplicate. But if you have copies saved on your iPhone, then iCloud will upload both versions of the photo. Duplicates happen to everyone. Especially if you're using your iPhone as your primary camera.


1 Answers

Include a hi-res version of your image named as "[email protected]" (where "image.png" is the normal resolution). When you access your image using [UIImage imageNamed:@"image.png"], the correct one will be chosen automatically. Devices without retina display won't load the hi-res version, so there's no memory overhead.

like image 132
omz Avatar answered Oct 21 '22 05:10

omz