PHPhotoLibrary.requestAuthorization { (status) in
if status == .notDetermined {
// do nothing
} else if status == .authorized {
// do something
} else {
// alert
}
}
PHPhotoLibrary.requestAuthorization { (status) in
if status == .notDetermined {
// do nothing
} else if status == .authorized {
// do something
} else {
// alert
}
}
本文标题:iOS 11上请求相册权限(弹出权限开启提示框)
本文链接:https://www.haomeiwen.com/subject/ykxymftx.html
网友评论