美文网首页
info.plist相关设置

info.plist相关设置

作者: iaiayao | 来源:发表于2018-02-23 15:19 被阅读5次

    网络设置

    iOS9引入了新特性App Transport Security (ATS)。详情:App Transport Security (ATS)

    新特性要求App内访问的网络必须使用HTTPS协议。

    但是现在公司的项目使用的是HTTP协议,使用私有加密方式保证数据安全。现在也不能马上改成HTTPS协议传输。

    1.在Info.plist中添加NSAppTransportSecurity类型Dictionary。

    2.在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES

    权限设置

    NSPhotoLibraryUsageDescription    App需要您的同意,才能访问相册

    NSCameraUsageDescription    App需要您的同意,才能访问相机

    NSMicrophoneUsageDescription    App需要您的同意,才能访问麦克风

    NSLocationUsageDescription    App需要您的同意,才能访问位置

    NSLocationWhenInUseUsageDescription    App需要您的同意,才能在使用期间访问位置

    NSLocationAlwaysUsageDescription    App需要您的同意,才能始终访问位置

    NSCalendarsUsageDescription    App需要您的同意,才能访问日历

    NSRemindersUsageDescription    App需要您的同意,才能访问提醒事项

    NSMotionUsageDescription     App需要您的同意,才能访问运动与健身

    NSHealthUpdateUsageDescription    App需要您的同意,才能访问健康更新

    NSHealthShareUsageDescription    App需要您的同意,才能访问健康分享

    NSBluetoothPeripheralUsageDescription    App需要您的同意,才能访问蓝牙

    NSAppleMusicUsageDescription    App需要您的同意,才能访问媒体资料库

    相关文章

      网友评论

          本文标题:info.plist相关设置

          本文链接:https://www.haomeiwen.com/subject/brsxxftx.html