让 iPhone 应用程序在 iPad 上运行
我创建了一个 iPhone 应用程序,该应用程序仅适用于 iPhone。
现在,我也想在 iPad 上安装该应用程序。
有什么方法可以重复使用现有的 iPhone XIB 来支持 iPad 上的该应用程序。 (我不想单独为 iPad 重新创建所有 XIB。)
有什么指导吗?
另外,我还需要注意哪些事项?
I have created an iPhone Application, which works only on iPhone.
Now, I want that App on iPad, too.
Is there any way that I can reuse my existing iPhone XIBs to support that App on iPad. (I don't want to recreate all the XIBs for iPad separately.)
Any guidance for that?
Also, What other points I need to take care of?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您选择 2 倍缩放视图,您的 iPhone 应用程序将在 iPad 上运行。但显示器的质量不会很高。现在有传言称下一代 iPad 将配备视网膜显示屏。因此,我可以给出的一个建议是,当您创建新项目时,选择“通用”作为设备系列的选项。
根据您的应用程序,当您尝试在 iPad 上运行应用程序时,功能检测可能是您必须注意的一件事。例如,Siri 适用于 iPhone 4s,但不适用于 iPad 2。(虽然 Siri 的 API 尚未发布,但我只是将其放在那里)。另外,iPhone 4 有摄像头,而 iPad 1 没有。
Your iPhone app will work in iPad if you choose 2x zoom view. But the display will not be of the highest quality. Now rumors are there that next iPad will have retina display. So, one suggestion I can give is, when you create a new project, Choose "Universal" as the option for device family.
Depending on your app, Feature detection might be one thing you have to look out for when you try to run an app on iPad. For example, Siri is available for iPhone 4s, but not iPad 2. (Although the API for Siri isn't out yet, I'm just putting it there). Also, iPhone 4 has camera, while iPad 1 doesn't have.
单击您的目标,然后在“设备”下将其更改为通用。现在您的项目应该可以在任一设备上运行。
Click on your target, and under "Devices" change to Universal. Now your project should run on either device.