如何在iPad中使用图像选择器? [英] How to use image picker in iPad?
本文介绍了如何在iPad中使用图像选择器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道如何在iPhone中使用图像选择器,虽然知道需要在iPad中使用新的类UIPopoverController,但仍然无法找到在iPad中使用图像选择器的一种方法,任何人都有同样的问题?谢谢
I know how to 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只是一个视图控制器。如果您知道如何使用UIPopoverController来呈现视图控制器,那么它的方式也是一样的。
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:...];
这篇关于如何在iPad中使用图像选择器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文