Q:

Trouble updating a UIImageView selected from iphone photo library

I'm using the code below to retrieve an image from the iphone photo library. self.selectedImageView.image is an image view located on top of the view of the current view controller. Everything in xcode seems linked correctly; the image view is wired and so fourth. 
Problem:
After selecting an image I can see that this method is called but the new image does not update. The image view is completely blank. 
Question: Is their some sort of refreshing that needs to take place after reassigning a new image to an image view?
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
    NSLog(@"image selected");
    [picker dismissViewControllerAnimated:YES completion:NULL];

    UIImage *chosenImage = info[UIImagePickerControllerEditedImage];
    self.selectedImageView.image = chosenImage;        
}

A:

Try using the key UIImagePickerControllerOriginalImage instead. The key your currently using, UIImagePickerControllerEditedImage, is for accessing images that the user has edited.  
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{

 // Get the image first then dismiss the controller. 
UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];

[self dismissViewControllerAnimated:YES completion:nil];
 self.selectedImageView.image = chosenImage;  
}

