網(wǎng)絡設置
iOS9引入了新特性App Transport Security (ATS)。詳情:App Transport Security (ATS)
新特性要求App內(nèi)訪問的網(wǎng)絡必須使用HTTPS協(xié)議。
但是現(xiàn)在公司的項目使用的是HTTP協(xié)議,使用私有加密方式保證數(shù)據(jù)安全?,F(xiàn)在也不能馬上改成HTTPS協(xié)議傳輸。
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需要您的同意,才能訪問媒體資料庫