title: Why my iOS app does not ask user permission to access camera?
body: <p>I develop iOS app and it uses camera. AVCaptureDeviceInput is used to interface to camera.
  I checked Authorisation status as</p>
  
  <pre><code>- (void)checkDeviceAuthorizationStatus
  {
      NSString *mediaType = AVMediaTypeVideo;
  
      [AVCaptureDevice requestAccessForMediaType:mediaType completionHandler:^(BOOL granted) {
          if (granted)
          {
              //Granted access to mediaType
              [self setDeviceAuthorized:YES];
          }
          else
          {
              //Not granted access to mediaType
              dispatch_async(dispatch_get_main_queue(), ^{
                  [[[UIAlertView alloc] initWithTitle:@"AVCam!"
                                              message:@"AVCam doesn't have permission to use Camera, please change privacy settings"
                                             delegate:self
                                    cancelButtonTitle:@"OK"
                                    otherButtonTitles:nil] show];
                  [self setDeviceAuthorized:NO];
              });
          }
      }];
  }
  </code></pre>
  
  <p>When I launch the application, why it does not ask user permission for access to the camera?
  So the app does not appear in settings/privacy/camera to manually allow to access camera.
  Then show this error <code>"AVCam doesn't have permission to use Camera, please change privacy settings"</code> and app can't use the camera.</p>
  
  <p>EDIT:
  That means the app is not allowed to access the camera without asking user permission.
  Not only camera, camera-roll also has the same problem.</p>
  
  <p>All these things happened after I reset settings in Settings/Reset/Rest All Settings. Before that the app was working well.</p>