Post

Replies

Boosts

Views

Activity

Reply to How to use PHAuthorizationStatusLimited in iOS 14
Hello, I had a similar problem. I prepared my app for iOS. I make my check for access to photo library als follow:     switch ([PHPhotoLibrary authorizationStatus]) {         case PHAuthorizationStatusNotDetermined: {             NSLog(@"----> Not Determined <----");             [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus statusNew) {                 switch (statusNew) {                     case PHAuthorizationStatusDenied:                         NSLog(@"----> Denied after Request <----");                         break;                     case PHAuthorizationStatusLimited:                         NSLog(@"----> Limited after Request <----");                         break;                     case PHAuthorizationStatusAuthorized:                         NSLog(@"----> Authorized after Request <----");                         break;                     case PHAuthorizationStatusRestricted:                         NSLog(@"----> Restricted after Request <----");                         break;                     default:                         break;                 }             }];             break;         }         case PHAuthorizationStatusDenied:             NSLog(@"----> Denied <----");             break;         case PHAuthorizationStatusLimited:             NSLog(@"----> Limited <----");             break;         case PHAuthorizationStatusAuthorized:             NSLog(@"----> Authorized <----");             break;         case PHAuthorizationStatusRestricted:             NSLog(@"----> Restricted <----");             break;         default:         break; } If I select choose photos I only get the PHAuthorizationStatusAuthorized and not PHAuthorizationStatusLimited. Is there a bug in this api or what I do wrong ?
Aug ’20