简体   繁体   English

是否可以创建与iPad兼容的iPhone应用程序?

[英]Is it possible to create an iPad compatible iPhone app?

I remember a while ago, iPhone/iPod apps could be downloaded on to an iPad and scaled up to fit the screen. 我记得不久前,可以将iPhone / iPod应用程序下载到iPad上并按比例放大以适应屏幕。 I want to make an iPhone and iPad compatible app however my iPhone storyboard doesn't translate well into an iPad storyboard, so is it possible to release my app for iPhone and iPad, by just scaling the interface on iPads? 我想制作一个iPhone和iPad兼容的应用程序但是我的iPhone故事板不能很好地转换成iPad故事板,所以是否可以通过在iPad上扩展界面来发布我的iPhone和iPad应用程序?

你想让它成为一个通用的应用程序

If you have an iPhone-only app, then it will automatically run on iPads, either small in the middle of the screen or scaled up to fill most (but not all) of the screen. 如果您有一个仅限iPhone的应用程序,那么它将自动在iPad上运行,无论是在屏幕中间的小型还是按比例放大以填充大部分(但不是全部)屏幕。 So if all you're looking for on iPad is your exact iPhone interface scaled up, then make sure your app is iPhone-only. 因此,如果您在iPad上寻找的只是缩小的确切iPhone界面,那么请确保您的应用仅限iPhone。

If you do wish to have a different interface on iPad at all, especially if you want it to actually fill the screen, you'll need to make your app universal, and create a separate iPad storyboard. 如果您确实希望在iPad上拥有不同的界面,特别是如果您希望它实际填满屏幕,您需要使您的应用程序具有通用性,并创建一个单独的iPad故事板。 You can either copy your view controllers over from your iPhone storyboard, or you can create them new in the iPad storyboard, it just depends on how similar you want them. 您可以从iPhone故事板复制视图控制器,也可以在iPad故事板中创建新视图控制器,这取决于您希望它们的相似程度。 If you were going for a radically different iPad interface, you would probably create new ones. 如果你想要一个完全不同的iPad界面,你可能会创建新的界面。 In fact your iPad interface and navigation won't necessarily correspond to the iPhone version (although generally they do correspond pretty closely, it's just that the iPad usually shows more at once, or has some kind of navigation that remains visible all of the time). 事实上,你的iPad界面和导航不一定与iPhone版本相对应(虽然它们通常非常接近,但只是iPad通常会同时显示更多,或者某种导航始终可见) 。

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

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