Please help.
No one seems to have a successful working answer to the following:
I get an image from the iPhone camera using UIImagePickerController. When taking the image there is an overlay present. The overlay is simply a subclassed UIImageView with various gestures attached.
When I take the image, how do I add the overlay to the image in precisely where it is on the device screen?
Any help much appreciated,
LB
I’m writing this away from xcode, so it may need tweaks…
Create a UIView class with UIImage properties, picture & overlay, & call it something like compositorView. From the didFinishPickingMediaWithInfo: method in your UIImagePickerController delegate, set the picture property of compositorView to the photo you’ve just taken, & the overlay property to whatever image you’re using. Then ask compositorView for its composedImage, & that should be it…
(You’ll need the QuartzCore framework)