user3682355
user3682355

Reputation: 3

Making iPad app to support retina display

I have made an iPad app and it works cool. Problem is that my client want's to have retina high resolutions also supported in the app. So lets say We are using images with normal resolution in the app are of 15mb , so again we need to add high resolution each file. So it will increase the file. Is there any way where we can just place high res files only and they should work on both retina and non-retina .

Upvotes: 0

Views: 82

Answers (1)

Pradeep Singh
Pradeep Singh

Reputation: 762

You can fetch image asset using [UIImage imageWithName] in that case, at the runtime appropriate image will be fetched for the device, i.e. if you'll use non-retina device it'll take 1x images and if you use retina device it'll use 2x images.

But, if you want you can fetch the file with [UIImage imageWithContentsOfFile:] you'll be able to fetch that particular file.

You can also use ImageOptim tool to optimse the image without image quality loss.

Upvotes: 3

Related Questions