按型号定位iPhone应用程序(例如3G与3GS) [英] Target iPhone application by model (e.g. 3G vs 3GS)

查看:139
本文介绍了按型号定位iPhone应用程序(例如3G与3GS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与info.plist文件上所需的设备功能非常相似,是否可以将应用程序配置为仅在某些设备型号上可用?

我知道如何按设备系列(iPhone和iPod vs iPad)定位,但在这种情况下,我希望按型号定位.我也知道如何以编程方式确定模型,但是我想要的是iTunes阻止某些设备模型能够下载应用程序,这就是为什么通过info.plist这样做似乎是最好的方法.

例如,如果我希望某个应用程序可以在iPhone 3GS(或iPhone/iPod 4)及更高版本上使用,但不能在iPhone 3G上使用,有什么办法吗?

解决方案

除代码外,没有其他方法可以做到. Apple不鼓励这样做,而是要求您要求特定的功能而不是特定的型号.

您能做的最好的事情就是在产品说明中指出,例如,并非3G硬件上的所有功能都可用/性能良好,然后禁用代码中的这些功能或使它们运行不正常.

Much like the required device capabilities on the info.plist file, is it possible to configure an application such that it will only be available on some device models?

I know how to target it by device family (iPhone&iPod vs iPad), but in this case I'm looking to target by model. I also know how to programmatically determine the model, but what I want is for iTunes to prevent some device models from being able to download an app, which is why doing it via info.plist seems like it would be the best way.

For instance, if I wanted an app to be available on iPhone 3GS (or iPhone/iPod 4) and upper but NOT on iPhone 3G, is there any way to do it?

解决方案

There is no way to do it, except in code. Apple discourages it, instead asking you to require specific features instead of specific models.

The best you can do is note in the product description that not all features are available/performant on the 3G hardware, for example, and then disable those features in code or let them run poorly.

这篇关于按型号定位iPhone应用程序(例如3G与3GS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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