Solved it. I had to initialize overlayView with a frame size.
Hmm, I am trying to do the same thing. I have the overlayView initialized with a frame size, but I still cant get the button to respond to touches. Is there something else you did as well?
Hmm, I am trying to do the same thing. I have the overlayView initialized with a frame size, but I still cant get the button to respond to touches. Is there something else you did as well?
Make sure you add the button to the overlay view after calling setCameraOverlayView.
The button in the overlayView still doesn't work - so I guess I havent understood your advice properly, this is my code now adding the subview with the button after I add the overlay to the camera:
This example saves photo only with 320*480 screen! How can I save photos with a bigger resolution (1200*1600)?
Thanks in advance.
You might want to check out iPhone Camera Programming Exercises by Norman McEntire. It was very helpful for me, and as I recall shows you specifically how to get the image dimensions from the camera and save the context to the correct size. There is a free viewer for iPhone, so you don't need a Kindle to use it.
I've been trying to add a toolbar with a button onto the overlay view which simply allows me to cancel the camera. I can't figure out why I'm unable to actually trigger the button. I have the toolbar set up along with the button, but I cannot seem to click on the button. My feeling is that it is somehow being hidden.
Has anybody added a simple toolbar to the overlay with a UIBarButton, and if so how?