iPhone: Camera Preview Overlay

Stefan picture Stefan · Jun 16, 2009 · Viewed 28.5k times · Source

How do I add an overlay (UIImageView) to the camera preview and handle touches on this?

My previous attempts to do this (e.g. use UIImagePickerController and add the image as a subview) have failed.

Answer

dtt101 picture dtt101 · Jan 12, 2010

This tutorial explains it: http://www.musicalgeometry.com/?p=821

Just add a UIImage in the overlay view instead of the red area shown in the tutorial.