iPhone / iPad - 仅限iPhone应用程序 [英] iPhone/iPad - Breaking universal into iPhone app only

查看:220
本文介绍了iPhone / iPad - 仅限iPhone应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用通用应用编码,让应用在iPhone和iPad上运行。
但后来该要求改为使该应用程序仅适用于iPhone。
有哪些更改以及更改的位置,以便我的应用程序不再是通用应用程序,并确保它只在iPhone上运行。 (当然它仍然可以在iPad上运行,并带有2个按钮)

I started my Universal app coding that makes the app run on iPhone and iPad. But later the requirement changed to make the app just for iPhone. What are the changes to be made and where to change so that my app is no more an Universal application and make sure that it runs only on iPhone. (Ofcourse it can still run on iPad with 2x button on it)

推荐答案

在XCode 4中,它就像点击你的项目一样简单在项目导航器中的文件,并将iOS应用程序目标下的设备更改为iPhone。那么你想要做的是删除只有iPad使用的所有资源(图像,接口)以节省空间。这可以在Build Phases选项卡中完成。在您可以删除的plist文件等地方仍然会有iPad项目,您可能只想在项目中搜索iPad以删除任何不需要的引用。

In XCode 4 it is as simple as clicking your project file in the project navigator and changing Devices under iOS Application target to iPhone. Then what you want to do is remove all resources that only the iPad was using (images, interfaces) to save space. This can be done in the Build Phases tab.There will still be iPad items in places such as the plist file you can remove and you may just want to do a search for iPad in your project to remove any more unwanted references.

这篇关于iPhone / iPad - 仅限iPhone应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆