The modal view of the camera already supports touch focus. You must make your overlay look โtransparentโ for touch.
Subclass a UIView as an OverlayView and add something like this. In my overlay view, I have two buttons that, of course, should not be transparent to the touch.
- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event {
if (CGRectContainsPoint(infoButton.frame, point) || CGRectContainsPoint(snapButton.frame, point)) {
return YES;
}
return NO;
}
, , .
, " " .