iPhone相机光圈/快门卡在关闭位置 [英] iPhone Camera Iris / Shutter stuck in closed position

查看:224
本文介绍了iPhone相机光圈/快门卡在关闭位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于标题说明我开发的应用程式只有在应用程式在进入背景后重新启动时才会发生问题。



相机光圈或快门被卡在关闭位置。有趣的是,你仍然可以拍照,但你看不到预览。拍摄照片后,会在视图中正确显示。



当应用完全关闭时,如果应用启动,则不会发生此问题。



以下是重现问题的确切步骤:



1)我打开应用程序,一切正常。



2)应用程序通过按主页按钮进入背景或来电。



3)当应用程序进入前台/重新打开并且访问相机时,快门屏幕将显示并保持在卡住位置。



4)修复它的唯一方法是关闭模态视图摄像头控制器,然后再次按下摄像头按钮。



我做了一些研究,找到一个答案,没有提出任何。没有内存泄漏,我已经检查仪器的内存分配,没有什么不寻常的。



希望有人有解决方案,我感谢帮助。

提前谢谢。

解决方案

但缩小了一点 - 它只发生在iOS 5.有一些提示从其他人谈论内存,我释放了尽可能多的内存,在展示UIImagePickerController和问题停止发生。


As the title states the app that I am developing has an issue that is caused only when the app is relaunched after entering the background.

The camera iris or shutter gets stuck in the closed position. The funny thing is you can still take a picture but you cannot see the preview. Once the picture is taken, it is shown correctly in the view.

This issue does not happen when the app is launched if the app is completely closed. I can take pictures, add effects and so on, every time the camera is opened it works correctly.

Here are the exact steps to reproduce the issue:

1) I open the app, everything works fine.

2) The app enters the background either by pressing the home button or incoming call.

3) When the app enters the foreground / reopened and the camera is accessed the shutter screen is shown and remains closed in the stuck position.

4) The only way to fix it is to dismiss the modal view camera controller and press the camera button again.

I have done some research to find an answer and have come up with nothing. There are no memory leaks and I have checked the memory allocations in instruments and there is nothing unusual.

Hopefully someone has a solution, I appreciate the help.

Thank you in advance.

解决方案

I'm having the exact same issue, but narrowed down a bit - it only happens with iOS 5. With some hints from other people talking about memory, I freed up as much memory as possible before presenting the UIImagePickerController and the problem stopped happening.

这篇关于iPhone相机光圈/快门卡在关闭位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆