phpickerviewcontroller

How to use PHAuthorizationStatusLimited in iOS 14

夙愿已清 提交于 2021-02-04 19:46:16
问题 In order to fetch photo's creationDate, so use requestAuthorizationForAccessLevel before show PHPickerViewController. PHAccessLevel level = PHAccessLevelReadWrite; [PHPhotoLibrary requestAuthorizationForAccessLevel:level handler:^(PHAuthorizationStatus status) { if (status == PHAuthorizationStatusLimited || status == PHAuthorizationStatusAuthorized) { dispatch_async(dispatch_get_main_queue(), ^{ PHPickerConfiguration *configuration = [[PHPickerConfiguration alloc] initWithPhotoLibrary: