I have a UIImageView outlet in my page. I want that to be filled with an image of user's choice. So on click of a button underneath, user can select image from library/camera. Till here all s fine. However, once the user selects an image, say from the photo library, it does not display it on the UIIMageView. The following is the code
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
[picker dismissModalViewControllerAnimated:YES];
imageView1.image = [info objectForKey:@"UIImagePickerControllerEditImage"];
NSLog(@"Image being added to the view");
}
The NSLog in console confirms the function call. Any comments on why the image is not being displayed?