I have a custom UIButton with UILabel added as subview. Button perform given selector only when I touch it about 15points lower of top bound. And when I tap above that area
Give a extension version according to Bart Whiteley. No need to subclass.
@implementation UINavigationBar(Xxxxxx) - (UIView*)hitTest:(CGPoint)point withEvent:(UIEvent *)event { UIView *v = [super hitTest:point withEvent:event]; return v == self ? nil: v; } @end