开发者

How to use image picker in iPad?

开发者 https://www.devze.com 2023-01-06 23:58 出处:网络
I know how to 开发者_StackOverflow社区use image picker in iPhone , although know need to use new class UIPopoverController in iPad, but still can not figure out one way to use image pickr in iPad, any

I know how to 开发者_StackOverflow社区use image picker in iPhone , although know need to use new class UIPopoverController in iPad, but still can not figure out one way to use image pickr in iPad, any one has the same problem ? thanks


UIImagePickerController is just a view controller. If you know how to use a UIPopoverController to present a view controller, then it's just the same way.

UIImagePickerController* imagePicker = ...
UIPopoverController* popover = [[UIPopoverController alloc]
                                 initWithContentViewController:imagePicker];
[imagePicker release];
[popover presentPopoverFromRect:...];
0

精彩评论

暂无评论...
验证码 换一张
取 消