title: PHPhotoLibrary requestAuthorization, not requesting
body: <p>For testing, I was trying to recreate the system 'Requesting Access' popup experience.</p>
  
  <p><strong>Update:</strong><br>
  Under iOS 11, after deleting the App, the system popup will be displayed again.</p>
  
  <hr>
  
  <p><em>(previous question)</em></p>
  
  <p>First time the App run (and the <strong>only</strong> time), the system popup showed, requesting access. After that, <strong>not even deleting the App and restarting the device</strong> will trigger that popup again.</p>
  
  <p>In other words, the device 'remembers' the user request and there's no way to reset it.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>[PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) {
  
      switch (status) {
          case PHAuthorizationStatusAuthorized:
              NSLog(@"PHAuthorizationStatusAuthorized");
              break;
  
          case PHAuthorizationStatusDenied:
              NSLog(@"PHAuthorizationStatusDenied");
              break;
          case PHAuthorizationStatusNotDetermined:
              NSLog(@"PHAuthorizationStatusNotDetermined");
              break;
          case PHAuthorizationStatusRestricted:
              NSLog(@"PHAuthorizationStatusRestricted");
              break;
      }
  
  }];
  </code></pre>
  
  <p>When access is off in settings, it keeps printing "PHAuthorizationStatusDenied". But does not present any popup. Returns immediately.</p>
  
  <p>It was suggested to add 'Bundle display name' to the plist. Tried it to no avail, with empty value, $(PRODUCT_NAME), and different strings.</p>
  
  <p>Cleaned project, deleted DrivedData (and delete App from simulator every time). No luck.</p>
  
  <p><strong>More info:</strong></p>
  
  <p>The Apple sample code "SamplePhotosApp", is crashing once you turn off photo access in the Settings.</p>