title: Activating iPhone camera action crashes my app
body: <p>Strange issue: </p>
  
  <p>My users activate the iPhone camera by tapping a button to take a photo. E.g. button is tapped, camera opens. Up until yesterday, the code below worked completely fine (and still does on my own phone). However, on everyone else's phone in our test group, the app crashes as soon as the camera button is tapped. Any idea as to why? See my code below - I'm stumped. <strong><em>Note</em></strong>: Everyone is running iOS 10.</p>
  
  <p><strong>ViewController.h</strong></p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface ViewController : UIViewController &lt;UITextFieldDelegate, UINavigationControllerDelegate,  UIImagePickerControllerDelegate&gt; {
  
  }    
      @property (strong, nonatomic) NSMutableArray *photoData;
      @property (weak, nonatomic) IBOutlet UIImageView *imageView;
  
      @end
  </code></pre>
  
  <p><strong>ViewController.m</strong></p>
  
  <pre><code>- (IBAction)takePhoto:(id)sender {
  
      UIImagePickerController *picker = [[UIImagePickerController alloc] init];
      picker.delegate = self;
      picker.allowsEditing = YES;
      picker.sourceType = UIImagePickerControllerSourceTypeCamera;
  
      [self presentViewController:picker animated:YES completion:NULL];
  }
  
  - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
  
      UIImage *chosenImage = info[UIImagePickerControllerEditedImage];
      self.imageView.image = chosenImage;
  
      [picker dismissViewControllerAnimated:YES completion:NULL];
  }
  
  - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
  
      [picker dismissViewControllerAnimated:YES completion:NULL];
  }
  </code></pre>