如何限制仅适用于iPhone的iOS应用程序(不包括iPad)? [英] How to Restrict the iOS app only for iPhone excluding iPad?
问题描述
我想限制我的应用仅适用于iPhone。我不希望我的应用程序可用于iPad。
I want to restrict my app only for iPhone. I don't want my app is available for iPad.
推荐答案
您不能限制应用程序仅在iPhone上运行正常的方式.iOS设计的方式是iPhone应用程序将以1倍的分辨率在iPad上运行。
You can't restrict an application to run on iPhone only in the normal way.The iOS is designed such a way that the iPhone apps will run on iPad in 1x resolution .
但是如果你真的想将你的应用限制在iPhone上,您可以通过在UIRequiredDeviceCapabilities中指定应用程序要求功能电话来工作来实现此目的。这意味着它只适用于iPhone。
However if you really want to restrict your app to iPhone , you can achieve this by stating that the app requires feature telephony to work by specifying the same in UIRequiredDeviceCapabilities . This means it will only work on an iPhone.
这篇关于如何限制仅适用于iPhone的iOS应用程序(不包括iPad)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!