Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Considerations for making 3rd-generation iPad applications

I am currently making an iPad application where the Views were created for iPad 2 resolution. However, now that iPad has come out with double the resolution, I also need to support that. Pls direct on what changes to make in the application so that both iPad 2 and 3rd-generation iPad are supported. The only way I can think of is programatically controlling the view frames and laying out the subviews which will be nightmare :-). Pls help if there is a better, more scalable way of doing it.

Thanks so much for all your help in advance.

like image 564
inforeqd Avatar asked Jul 16 '26 20:07

inforeqd


1 Answers

You don't have to change the frames of your views. The only thing to do is to add double resolution versions of the images you use.

So if you have an image called MyImage.png with a size of 100x100, add a new image called [email protected] and with a size of 200x200.

There is no code to change. If you respect the convention of adding the suffix @2x to the names of your images, then, the right image (standard or high resolution) will be used according to the screen resolution of the device.

Finally, don't forget to add icons and launch images with the correct dimensions for the new iPad.

like image 96
sch Avatar answered Jul 19 '26 10:07

sch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!