iosiphone-4iphone-5ipad-2ipad-3

Will iPad2 app work on iPad3?


I am new to iOS,

I seen that iPad 2 has resolution of 1024-by-768 and iPad 3 has resolution of 2048-by-1536 with retina display..

I am sure that iPad 2 app will defiantly work on iPad mini because the resolution is same..

and same case for iPhone,

Do we need to develop separate app for iPhone 5 ? because it has resolution different then other iPhone..

I am sure this is a dumb question that any mildly experienced iOS developer would laugh at but since a simple Google search didn't turn anything up I figured id ask.

Any help will be appriciated.


Solution

  • Will iPad2 app work on iPad3?

    Yes, it will. The iPad 3 has exactly twice the pixel density in each direction as the iPad 2, so the OS will just go ahead and "scale up" the graphics (except those which are made from images in the app - you'll have to generate a higher resolution version of these image files for iPad 3).

    Do we need to develop separate app for iPhone 5?

    Not a separate app, you just have to pay attention to the different screen aspect ratio. If you don't do that, you'll have black bars at the top and the bottom of the screen.