简体   繁体   English

适用于iPhone和iPad的同一个应用程序,但不通用吗?

[英]Same app for iphone and ipad but not Universal?

I have developed an application for the iPhone devices and I want to also write it for iPad devices. 我已经为iPhone设备开发了一个应用程序,我也想为iPad设备编写它。 I do NOT want to create a Universal App. 我不想创建通用应用程序。 I want each type to be treated as a different app in the appstore. 我希望每种类型在Appstore中都被视为不同的应用程序。

I am using xcode 4 我正在使用xcode 4

Can anyone guide me to a good doc/tutorial as I didn't find much on this issue. 任何人都可以引导我找到一个好的文档/教程,因为在这个问题上我没有发现太多。

should I create a new project ? 我应该创建一个新项目吗? Can I use the existing code ? 我可以使用现有代码吗?

Thanks 谢谢

You just need to create a new target in your existing project and change its target device. 您只需要在现有项目中创建一个新目标并更改其目标设备即可。

I suggest ensuring that all your build settings (except for target device) are set at the project, not target, level. 我建议确保所有构建设置(目标设备除外)都在项目级别而非目标级别进行设置。 You'll have to ensure that you include all resources and code in both targets. 您必须确保在两个目标中都包含所有资源和代码。

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

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