如果一个按钮被覆盖如何响应?

在他们的父类试图重写该函数

//- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {

//    

//    UIButton *firstButton = (UIButton *) [self viewWithTag:1];

//    CGPoint pointInB = [firstButton convertPoint:point fromView:self];

//    

//    if ([firstButton pointInside:pointInB withEvent:event])

//        return firstButton;

//    

//    return [super hitTest:point withEvent:event];

//

//    

//}

posted on 2012-12-15 15:22  小浪鼓  阅读(437)  评论(0编辑  收藏  举报

导航