title: Determine if the access to photo library is set or not - PHPhotoLibrary
body: <p>With the new functionality in iOS 8, if you are using a camera in the app, it will ask for permission to access the camera and then when you try to retake the pic, it asks for permission to access photo library. Next time when I launch the app, I wish to check if the camera and photo library has access permissions to it.</p>
  
  <p><img src="https://i.stack.imgur.com/APioU.jpg" alt="enter image description here"></p>
  
  <p>For camera, I check it by </p>
  
  <pre><code>if ([AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo] == AVAuthorizationStatusDenied)
  {
  // do something
  }
  </code></pre>
  
  <p>I am looking for something similar to this for photo library.</p>