title: Selecting photo from cam roll on ipad requires pop over controller error
body: <p>Im converting an an iPhone app to universal.  </p>
  
  <p>One of my functions requires picking a photo from camera roll from a button in a table view controller.  Im getting an error saying I need to use a pop over controller to do this. </p>
  
  <p><code>On iPad, UIImagePickerController must be presented via UIPopoverController'
  </code></p>
  
  <p>As this is built in code (im picking this up from another developer) could I get some advice on on doing this properly in code.</p>
  
  <pre><code>UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
  imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  imagePicker.delegate = self;
  imagePicker.allowsEditing = YES;
  
  [self presentModalViewController:imagePicker animated:YES];
  </code></pre>
  
  <p>What ive tried so far:</p>
  
  <pre><code>UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
  imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  imagePicker.delegate = self;
  imagePicker.allowsEditing = YES;
  ////////
  imagePicker.modalPresentationStyle = UIModalPresentationCurrentContext; 
  ////////
  [self presentModalViewController:imagePicker animated:YES];
  </code></pre>
  
  <p>and</p>
  
  <pre><code>UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
  imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  imagePicker.delegate = self;
  imagePicker.allowsEditing = YES;
  ////////
  self.modalPresentationStyle = UIModalPresentationCurrentContext;
  ////////
  [self presentModalViewController:imagePicker animated:YES];
  </code></pre>