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.
verify that if "viewDidLoad" is called twice it wont break your logic, as it can happen on memory warning.
check if you are trying to use an object with retain count 0
精彩评论