I've seen the opposite issue crop up on this forum a few times, but not this particular one.
I have managed to add a sub view to the picker controller, which overlays a transparent image onto the camera view. By the way, this is done in landscape mode.
Once the picture is taken, the preview is presented in portrait view - a bug within the SDK, but have to live with it! - Since this is presented in portrait view, I need to get rid of my overlay image as it interferes with the preview.
The problem is, the delegate method didFinishPickingImage is only called after the "Use" button is pressed on the picker view. I haven't found any intermediate delegate methods in between taking the picture, and seeing the preview.
So any ideas on how I can remove the image overlay before it gets to the preview screen?
The problem is - didFinishPickingImage delegate method only gets called after the preview image has been confirmed. So my overlay image keeps on displaying on the preview as well - which I'd like to remove.
Sorry to keep bumping this up, but I'm getting a little desperate, and haven't yet found a solution.
I was thinking that may be NSNotification can be used here to tell the app delegate that the camera has finished taking a picture, and before the preview version comes up?
Have managed to sort it out, although I'm not sure whether Apple will approve of it or not.
I've hooked an IBAction to the CameraPressButton. When you press the button to capture the image, the IBAction fires and removes the overlay from the view.
This ofcourse tinkers with the subview hierarchy of the camera view, but there is no other way to hook into the preview mode of the camera just after the capture.