UIImagePickerController 通过 UIPopoverController
我刚刚在尝试以模态方式呈现 UIImagePickerController 时收到错误。该错误本质上表明我需要使用 UIPopoverController 显示 ImagePicker。
我的问题是我已经在 UIPopoverController 中,并且错误表明我可能需要显示两个弹出窗口控制器(我自己的),然后是 UIImagePickerController。这当然是反对 iPad HIG 的,也是应用程序拒绝的理由。
有什么优雅的方法可以解决这个问题吗?在这种情况下允许有两个弹出窗口吗?或者我是否要硬着头皮关闭我的旧弹出框(我真的不想这样做),显示图像选择器,然后重新显示我的旧弹出框?
谢谢!
I just received an error when trying to present a UIImagePickerController modally. The error essentially stated I needed to show the ImagePicker using a UIPopoverController.
My problem is I am already in a UIPopoverController, and the error is suggesting I may need to show two popover controllers, my own, and then UIImagePickerController. This is of course against the iPad HIG and grounds for app rejection.
Any elegant ways around this? Are two popovers allowed in this case? Or am I going to have bite the bullet and close my old popover (which I really don't want do ), show the image picker, then reshow my old one?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
作为另一种选择,您可以使用弹出窗口的
setContentViewController:
或setContentViewController:animated:
更改为 UIImagePickerController,然后更改回您自己的视图控制器。As another option, you could use the popover's
setContentViewController:
orsetContentViewController:animated:
to change to the UIImagePickerController and then change back to your own view controller.