开发者

Only button being shown when taking picture with camera in iPad 2

开发者 https://www.devze.com 2023-04-01 17:27 出处:网络
I\'m presenting my camera using a popover. It works perfectly inmy 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 th

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 bu开发者_如何学Ctton THEN the image appears, showing the photo just taken.

Any idea of what could be the cause ?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号