如何正确设置UIRequiredDeviceCapabilities? [英] How to properly set UIRequiredDeviceCapabilities?
问题描述
由于我的应用程序需要相机闪光灯,我已经拒绝了苹果公司拒绝在我的info.plist中实施 UIRequiredDeviceCapabilities
的应用程序。我理解这个问题,但我不确定如何正确设置此密钥。我是否将 UIRequiredDeviceCapabilities
创建为字典或数组?和相机闪光作为布尔或字符串?任何帮助表示赞赏!谢谢!
I have had an app rejected by Apple stating that I need to implement UIRequiredDeviceCapabilities
in my info.plist due to my app requiring a camera flash. I understand the issue but I am not sure how to properly set this key. Do I create UIRequiredDeviceCapabilities
as a dictionary or array? and camera-flash as a bool or string? Any help is appreciated! Thanks!
推荐答案
将此文本添加到您应用的Info.plist文件中:
Add this text to your app's Info.plist file:
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>camera-flash</string>
</array>
如果某些功能要求必须为假,则只需要字典。
You only need a dictionary if some of the capability requirements need to be false.
这篇关于如何正确设置UIRequiredDeviceCapabilities?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!