iPhone 4 独有的应用程序?
是否可以限制应用程序只能在 iPhone 4 上运行?我知道您可以拥有仅适用于 iPad 的应用程序。在 iTunes Connect 中,您过去可以指定仅适用于 iPhone 的应用程序。但现在在 iTunes Connect 中,它表示要将应用程序限制在某些设备上,可以使用 Info.plist。有人在 Info.plist 中建议,如果需要 FrontFacingCamera,则将其限制为 iPhone 4。这是限制应用程序仅在 iPhone 4 上运行的方法吗?
Is it possible to restrict an app to only run on an iPhone 4? I know you can have an iPad only app. And in iTunes Connect you used to be able to indicate an iPhone only app. But now in iTunes Connect it says that to restrict an app to certain devices one can use the Info.plist. Someone suggested that in the Info.plist if a FrontFacingCamera is required that would restrict it to iPhone 4. Is this the way to restrict an app to run on only on an iPhone 4?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知你不能做AppStore限制。但是,您可以阻止您的应用程序在非 i4 设备上运行。你也可以在应用程序描述中这样写,说你实际上需要 i4 来运行这个应用程序。
如果我错了,抱歉。
As far as I know you can't do an AppStore restriction. However you can prevent you app from running on non-i4 devices. You can also write so in the app description, saying that you actually need i4 to run this app.
Sorry if I'm wrong.
现在,您可以测试
[UIScreen mainScreen].scale
属性。截至目前,只有 iPhone 4 会在该属性中返回“2”。您可以在您的 AppDelegate 中进行检查,如果您似乎在低于规格的硬件上运行,则可以适当地进行检查。请记住,如果下一代 iPad 配备视网膜显示屏(或者史蒂夫几乎毫无疑问将在下周宣布 iPod Touch),那么该属性对他们来说也将是“2”。但也许没关系——如果您支持 iPhone 4,也许新的 iPod Touch 也应该受到支持?如果确实与屏幕密度有关,那么您应该测试屏幕密度,而不是您能找到的任何其他东西来识别设备。
Right now, you can test the
[UIScreen mainScreen].scale
property. As of right this moment, only an iPhone 4 will return a "2" in that property.You could check that out in your AppDelegate and bellyache appropriately if it appears you're running on unders-spec'ed hardware. Just bear in mind that if the next iPad gets a retina display (or the iPod Touch Steve will almost undoubtedly be announcing next week), that property will be "2" for them as well. But maybe that's ok--if you're supporting the iPhone 4 maybe the new iPod Touch should be supported as well? If it's really about the screen density, then you should test the screen density, not whatever else you can find to identify the device.