title: iOS app camera access denied iOS 9.1(black screen)
body: <p>I want to access camera in my app. I am trying the following code.</p>
  
  <pre><code>  if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera])
              {
                  UIImagePickerController *picker = [[UIImagePickerController alloc] init];
                  picker.delegate = self;
                  picker.allowsEditing = YES;
                  picker.sourceType = UIImagePickerControllerSourceTypeCamera;
                  if(isIOS8SystemVersion)
                  {
                      [[NSOperationQueue mainQueue] addOperationWithBlock:^{
                          [self presentViewController:picker animated:YES completion:NULL];
                      }];
                  }
                  else
                  {
                      [self presentViewController:picker animated:YES completion:NULL];
                  }
              }
  </code></pre>
  
  <p>This code works on my other app perfectly.But in this app,it is not asking camera permissions or showing it in the settings->privacy->camera.</p>
  
  <p><a href="https://i.stack.imgur.com/U6gJE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U6gJE.png" alt="enter image description here"></a></p>
  
  <p>The app prompts to use the location.But not showing anything for the camera or photos.</p>
  
  <p>The black screen appears and I can't take the picture if I directly use the camera code without the condition check.</p>