您的位置:首页 > 移动开发 > IOS开发

iOS 动画中 点击事件

2016-04-27 15:30 344 查看
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{
if (touch.view.tag == 9000) {
if ([[touch.view subviews] count]) {

CGPoint touchPoint = [touch locationInView:touch.view];

for (DYBroadcastDmItemView *colorDanmu in touch.view.subviews) {
if ([colorDanmu isKindOfClass:[DYBroadcastDmItemView class]] && [colorDanmu.layer.presentationLayer hitTest:touchPoint]) {
return YES;
}

}
}
return NO;
}

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