title: How to detect user has clicked Don't Allow access to camera
body: <p>I am using a <code>UIImagePicker</code> to present the users with camera to take photos which will be used in the app.</p>
  
  <p>My problem is that on the first time a user opens the image picker they are presented with a prompt saying: '"my App" Would like to Access your Camera' with two options, Don't allow and OK.</p>
  
  <p>My requirement is that when the user clicks Don't Allow, the Image picker gets dismissed leaving a black view. Is there a way to detect that the user has chosen Don't allow?</p>
  
  <p>Here is my code to present <code>UIImagePicker</code>:</p>
  
  <pre><code>var PhotoPicker:UIImagePickerController = UIImagePickerController()
  PhotoPicker.delegate = self
  PhotoPicker.sourceType = .Camera
  PhotoPicker.cameraFlashMode = .Off
  PhotoPicker.showsCameraControls = false
  PhotoPicker.cameraDevice = .Rear
  self.presentViewController(PhotoPicker, animated: false, completion: nil)
  </code></pre>