【发布时间】:2010-07-09 05:30:18
【问题描述】:
我知道如何在 iPhone 中使用图像选择器,虽然知道需要在 iPad 中使用新类 UIPopoverController,但仍然想不出一种在 iPad 中使用图像选择器的方法,有人有同样的问题吗?谢谢
【问题讨论】:
标签: ipad uiimagepickercontroller
我知道如何在 iPhone 中使用图像选择器,虽然知道需要在 iPad 中使用新类 UIPopoverController,但仍然想不出一种在 iPad 中使用图像选择器的方法,有人有同样的问题吗?谢谢
【问题讨论】:
标签: ipad uiimagepickercontroller
UIImagePickerController 只是一个视图控制器。如果你知道如何使用 UIPopoverController 来呈现视图控制器,那么它的方式是一样的。
UIImagePickerController* imagePicker = ...
UIPopoverController* popover = [[UIPopoverController alloc]
initWithContentViewController:imagePicker];
[imagePicker release];
[popover presentPopoverFromRect:...];
【讨论】: