iPhone 4 独有的应用程序?

发布于 2024-09-11 11:23:29 字数 244 浏览 4 评论 0原文

是否可以限制应用程序只能在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

微凉 2024-09-18 11:23:29

据我所知你不能做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.

一梦浮鱼 2024-09-18 11:23:29

现在,您可以测试 [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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文