fix demo code
This commit is contained in:
parent
0768a23570
commit
555a19bcc9
|
|
@ -73,14 +73,15 @@ class DemoListViewController: UITableViewController, NohanaImagePickerController
|
|||
switch PHPhotoLibrary.authorizationStatus() {
|
||||
case .notDetermined:
|
||||
PHPhotoLibrary.requestAuthorization { status in
|
||||
switch status {
|
||||
case .authorized:
|
||||
handler(true)
|
||||
default:
|
||||
handler(false)
|
||||
DispatchQueue.main.async {
|
||||
switch status {
|
||||
case .authorized:
|
||||
handler(true)
|
||||
default:
|
||||
handler(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case .restricted:
|
||||
handler(false)
|
||||
case .denied:
|
||||
|
|
|
|||
Loading…
Reference in New Issue