iPad 2 中使用相机拍照时仅显示按钮

发布于 2024-12-02 07:32:59 字数 169 浏览 6 评论 0原文

我正在使用弹出框展示我的相机。它在我的 iPad 上完美运行。

令我惊讶的是,在 iPad 2 中,当相机被调用时,只会出现带有拍照按钮的灰色条,但显示相机所见内容的图像是不可见的,更奇怪的是,只有底层视图可见。如果用户触摸相机按钮,则会出现图像,显示刚刚拍摄的照片。

知道可能是什么原因吗?

I'm presenting my camera using a popover. It works perfectly in my iPad.

For my surprise in iPad 2 when the camera is summoned only the grey bar with the take picture button appears, but the image that shows what the camera sees is invisible, even weirder, only the underlying view is visible. If the user touches the camera button THEN the image appears, showing the photo just taken.

Any idea of what could be the cause ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

七七 2024-12-09 07:32:59

打开相机会占用大量内存。这会导致内存警告,进而删除未使用的视图和保留计数为 0 的对象。

  1. 验证如果“viewDidLoad”被调用两次,它不会破坏您的逻辑,因为它可能会在内存警告时发生。

  2. 检查您是否尝试使用保留计数为 0 的对象

opening the camera uses a lot of memory. this causes a memory warning, which in turn remove unused views and objects with a retain count 0.

  1. verify that if "viewDidLoad" is called twice it wont break your logic, as it can happen on memory warning.

  2. check if you are trying to use an object with retain count 0

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