How to use image picker on iPad?

I know how to use the image picker on the iPhone, although I know that I need to use the new UIPopoverController class on the iPad, but still cannot figure out how to use the pickr image on the iPad, does any problem have the same problem? thank

+3
source share
1 answer

UIImagePickerController is just a view controller. If you know how to use the UIPopoverController to represent a view controller, then this is exactly the same.

UIImagePickerController* imagePicker = ...
UIPopoverController* popover = [[UIPopoverController alloc]
                                 initWithContentViewController:imagePicker];
[imagePicker release];
[popover presentPopoverFromRect:...];
+3
source

Source: https://habr.com/ru/post/1753828/


All Articles