標(biāo)識(shí)符
Universally Unique Identifier
let uuid = UUID() // 每調(diào)用一次,會(huì)生成新的UUIDVendor Identifier
let idForVendor = UIDevice.current.identifierForVendor // 同一個(gè)team 的app 相同
位置授權(quán)(iOS 11)
Purpose String:
- NSLocationWhenInUseUsageDescription
- NSLocationAlwaysAndWhenInUseUsageDescription
授權(quán)狀態(tài):
- Always
- WhenInUse
bcfb6db1-7536-4404-9a9d-09769c28139c.png
最佳實(shí)踐:
需要Always 權(quán)限, 提供以下字符串描述:
NSLocationWhenInUseUsageDescription
NSLocationAlwaysAndWhenInUseUsageDescription
NSLocationAlwaysUsageDescription // 向下兼容
f82f5156-0a65-46fe-8f87-c7c58e910573.png
圖片庫(kù)(iOS 11)
- UIImagePickerController:不需要授權(quán)了
- 只寫(xiě)操作需要授權(quán):
Purpose String:- NSPhotoLibraryAddUsageDescription
UIImageWriteToSavedPhotosAlbum
UISaveVideoAtPathToSavedPhotosAlbum
Safari View Controller (iOS 11)
- SVC 和 Safari 分別有自己對(duì)網(wǎng)站數(shù)據(jù)存儲(chǔ)(比如cookie)
- 清除Safari 的數(shù)據(jù)也會(huì)清除SVC的數(shù)據(jù)

