在Swift的iOS 10之前,权限不起作用 [英] Permission is not working prior iOS 10 in Swift

查看:131
本文介绍了在Swift的iOS 10之前,权限不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Info.plist 中定义了相机和照片库的权限,并且在iOS 10中运行良好,但在iOS 10之前无效。

I have defined the permission of Camera and Photo library in Info.plist and is working fine in iOS 10 but it is not working prior iOS 10.

Privacy - Camera Usage Description : $(PRODUCT_NAME) camera use



照片库许可:



Photo Library Permission:

Privacy - Photo Library Usage Description : $(PRODUCT_NAME) photo use

请,建议我。

推荐答案

set '$(PRODUCT_NAME)' to "Bundle Display Name" in plist is the thing that worked for me

这篇关于在Swift的iOS 10之前,权限不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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