title: iPad UIImagePicker in UIPopoverController selecting only Saved images (not from Album)?
body: <p>In my iPad application, I'm letting the user select an image using the following code:</p>
  
  <pre><code>UIImagePickerController* picker = [[UIImagePickerController alloc] init]; 
  picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; 
  picker.delegate = self; 
  
  UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:picker];
  self.popoverController = popover;          
  popoverController.delegate = self;
  [popoverController presentPopoverFromRect:self.view.frame
                                     inView:self.view
                   permittedArrowDirections:UIPopoverArrowDirectionAny
                                   animated:YES];
  [picker release];
  </code></pre>
  
  <p>(I've set up the class to be both a UIPopoverControllerDelegate and a UIImagePickerControllerDelegate, and I've setup the callbacks for both delegates.)</p>
  
  <p>Now, the weird thing is that if I select an image from the "Saved Photos" photo album, my "imagePickerController: didFinishPickingImage" callback method gets called, and I get an image, and all is well.</p>
  
  <p>But, if I select an image from any of the other albums, my "imagePickerControllerDidCancel" callback gets called - and I don't get back an image.</p>
  
  <p>Any idea? I've searched the web high-and-low...</p>
  
  <p>Thanks,
   Reuven</p>
  
  <hr>
  
  <p>The plot thickens...</p>
  
  <p>When adding:<br>
      allowsEditing = YES;</p>
  
  <p>I can still select (and crop/scale) images from the Saved Photos album - but when trying to Use images from other albums, the iPad crashes with the debugger showing:</p>
  
  <p>2010-06-03 08:16:06.759 uPrintMobile[98412:207] <strong>* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*</strong> -[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: UIImagePickerControllerOriginalImage)'</p>
  
  <p>Still no clue...</p>