UIImagePickerController 通过 UIPopoverController

发布于 2024-11-03 14:33:01 字数 334 浏览 9 评论 0原文

我刚刚在尝试以模态方式呈现 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暗恋未遂 2024-11-10 14:33:01

作为另一种选择,您可以使用弹出窗口的 setContentViewController:setContentViewController:animated: 更改为 UIImagePickerController,然后更改回您自己的视图控制器。

As another option, you could use the popover's setContentViewController: or setContentViewController:animated: to change to the UIImagePickerController and then change back to your own view controller.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文