您的位置:首页 > 其它

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

2012-12-15 15:22 148 查看
在他们的父类试图重写该函数

//- (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];

//

//

//}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐