- Add a UIImageView as a child of your CameraOverlayView.
- Create a black PNG size of 320x480. Cut a rectangle in the middle to create a hole (transparent pixels).
- Assign a PNG image to UIImageView.
Alternatively, you can overwrite your CameraOverlayView - (void)drawRect:(CGRect)rectas follows (untested from my head):
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetRGBFillColor(context, 0.0f, 0.0f, 0.0f, 1.0f);
CGContextFillRect(context, rect);
CGContextSetBlendMode(context, kCGBlendModeClear);
CGContextFillRect(context, CGRectMake(40, 40, 100, 100);
- Faces (http://faces.pixelshed.net/). , .