简体   繁体   English

iPad2应用程序可以在iPad3上运行吗?

[英]Will iPad2 app work on iPad3?

I am new to iOS, 我是iOS新手,

I seen that iPad 2 has resolution of 1024-by-768 and iPad 3 has resolution of 2048-by-1536 with retina display.. 我看到iPad 2的分辨率为1024-by-768 ,iPad 3的分辨率为2048-by-1536带有视网膜显示屏。

I am sure that iPad 2 app will defiantly work on iPad mini because the resolution is same.. 我相信iPad 2应用程序会在iPad mini上运行,因为分辨率相同。

and same case for iPhone, 和iPhone相同的情况,

Do we need to develop separate app for iPhone 5 ? 我们需要为iPhone 5开发单独的应用程序吗? because it has resolution different then other iPhone.. 因为它的分辨率与其他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. 我确信这是一个愚蠢的问题,任何温和经验的iOS开发人员都会嘲笑,但由于简单的谷歌搜索没有改变任何东西,我想id问。

Any help will be appriciated. 任何帮助都会得到满足。

Will iPad2 app work on iPad3? iPad2应用程序可以在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). iPad 3在每个方向上的像素密度都是iPad 2的两倍,因此操作系统将继续“扩大”图形(除了那些由应用程序中的图像制作的图形 - 你必须生成一个适用于iPad 3的这些图像文件的更高分辨率版本。

Do we need to develop separate app for iPhone 5? 我们需要为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. 如果你不这样做,你会在屏幕的顶部和底部有黑条。

iPhone 4 Apps will work on iPhone 5 : But it will have black spaces at top and bottom, In order to refactor it you just need to change the splash screen which is suitable for iphone 5. iPhone 4应用程序可以在iPhone 5上运行:但它在顶部和底部都有黑色空间,为了重构它,你只需要改变适合iphone 5的闪屏。

iPad 2 Apps on iPad3: It will work without any issues unless they have different iOS versions running in them. iPad3上的iPad 2应用程序:除非在其中运行不同的iOS版本,否则它将毫无问题地运行。

As far as I know, the difference between the iPad2 and iPad3 won't be such a big problem. 据我所知,iPad2和iPad3之间的差异不会是一个大问题。 (unless you want to be really exact) (除非你想要真的准确)

Whereas you should develop a new App for the iPhone5 because it has a greatly different screen format than the iPads. 而你应该为iPhone5开发一个新的应用程序,因为它的屏幕格式与iPad大不相同。

Yes, your iPad 2 working app will work on iPad 3 (also, depends on iOS version). 是的,你的iPad 2工作应用程序可以在iPad 3上运行(也取决于iOS版本)。 Just it will not look good :) In order to make it look good, for all images used for your app, you have to add @2x ones with double size. 只是看起来不太好:)为了使它看起来不错,对于你的应用程序使用的所有图像,你必须添加双倍大小的@2x As for iPhone 5, no, you don't have to develop different app, just you have to make your views resizable to fit on screen. 至于iPhone 5,不,你不必开发不同的应用程序,只需要让你的视图可调整大小以适应屏幕。 Good Luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM