Info.plist里的相关配置

2018-01-09  本文已影响17人  原聪

1.允许http请求:

错误信息:Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSUnderlyingError=0x1c444e280 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "(null)"}

App Transport Security Settings ; Allow Arbitrary Loads

2.允许使用相机:

Privacy - Camera Usage Description

3.导航栏和状态栏的设置:

Status bar tinting parameters  -->Navigation bar -->Style + Translucent;

4.允许使用位置信息:

Privacy - Location When In Use Usage Description/Privacy - Location Always Usage Description

5.允许访问相册:

Privacy - Photo Library Usage Description

上一篇下一篇

猜你喜欢

热点阅读