【问题标题】:Prevent user from installing my app if capability not met如果未满足功能,则阻止用户安装我的应用程序
【发布时间】:2011-06-09 17:18:01
【问题描述】:

我正在开发一个应用程序,它的主要需求是自动对焦相机。如果用户没有自动对焦摄像头,如何防止用户安装此应用?

【问题讨论】:

    标签: iphone objective-c camera autofocus


    【解决方案1】:

    如果您真的想阻止没有自动对焦摄像头的用户安装您的应用,那么您可以在 info.plist 文件中添加“UIRequiredDeviceCapabilities”键,并可以将“auto-focus-camera”值添加到它。有关更多信息,您可以访问我的博客条目 - http://www.makebetterthings.com/blogs/iphone/how-to-prevent-apps-to-being-installed-on-wrong-or-incapable-devices/

    【讨论】:

      【解决方案2】:

      您需要 Info.plist 的 UIRequiredDeviceCapabilities 键(请参阅 Apple's documentation);具体来说,auto-focus-camera 的能力。

      【讨论】:

        【解决方案3】:

        您需要在 Info.plist 文件中添加一个UIRequiredDeviceCapabilities 键。该键是字典;您需要将其包含 auto-focus-camera 设置为 true。

        <key>UIRequiredDeviceCapabilities</key>
        <dict>
            <key>auto-focus-camera</key>
            <true/>
        </dict>
        

        请参阅full list of capabilities 和更多详细信息。

        【讨论】:

          【解决方案4】:

          查看 Info.plist 文件中的 UIRequiredDeviceCapabilities 键。如果您将“auto-focus-camera”作为该数组中的一项包括在内,则除非设备具有该功能,否则不应安装该应用。

          玩得开心!

          【讨论】:

          • 看起来约翰比我快。我应该在回答问题之前刷新页面! :)
          猜你喜欢
          • 2023-04-05
          • 1970-01-01
          • 1970-01-01
          • 2020-09-19
          • 1970-01-01
          • 1970-01-01
          • 2016-05-22
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多