- Home /
How to view an image selected from photo library's popover in a UIImageView, iPad
Hello developers, I am working on an application for iPad, it is working fine until i reached this point:
The app shows the popover for the photo library, but when I choose the photo, the popover doesn't hide, and I also want it to view the selected image in a UIImageView, however i do not know how.
I am sure there is something wrong in the didFinishpickingMediaWithInfo function. here is the function's code:
-(void) imagePickerController:(UIImagePickerController *)picker didFinishpickingMediaWithInfo:(NSDictionary *)info{ //bgImage is a UIImageView bgImage = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
// Dismiss UIImagePickerController and release it [picker dismissModalViewControllerAnimated:YES]; [picker.view removeFromSuperview]; [picker release];}
My first question is: What am i supposed to add to this function for viewing the selected photo in the UIImageView? (When I click on the photo from the photo library in the simulator, neither the photo library hide nor the image is viewed in the specified UIImageView)
2- I have read that I should've used UIImage instead of UIImageView.. Is this true? If yes, what about the interface builder? there is nothing called UIImage ?
Many thanks in advance.. :-)
Regards, Rawan
Your answer
![](https://koobas.hobune.stream/wayback/20220613121346im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Does anyone have iPad popover examples? 1 Answer
Low frame rate with only one texture on iPad 4 Answers
iOS application in the settings panel 3 Answers
Unity Game Testing: iPad1, iPad2, or both? 2 Answers
iPad 2 and Augmented Reality? 1 Answer