Adding jhabbott's answer is what worked for me. I have a custom MKCustomAnnotationView annotation MKCustomAnnotationView that contains a CustomPin annotation as an annotation. This โcontactโ contains UIButton as a replacement for the auxiliary button that I wanted to get by touch.
My hitTest method will look like this:
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { UIView *result = [super hitTest:point withEvent:event];
In most cases, a calloutActive bool is probably not required.
jimpic
source share