// 解决子视图coloseImg超出父视图不能响应问题
- (UIView*)hitTest:(CGPoint)pointwithEvent:(UIEvent*)event{
CGPointnewPoint = [selfconvertPoint:pointtoView:self.coloseImg];
if([self.coloseImgpointInside:newPointwithEvent:event]) {
returnself.coloseImg;
}
return[superhitTest:pointwithEvent:event];
}
网友评论