美文网首页
UITapGestureRecognizer和UItablevi

UITapGestureRecognizer和UItablevi

作者: 一代骄马 | 来源:发表于2017-10-29 12:06 被阅读3次

    http://blog.csdn.net/quanqinyang/article/details/17376973

    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(hideTabelView:)];

    tap.cancelsTouchesInView = YES;

    tap.delegate = self;

    [_veilView addGestureRecognizer:tap];

    - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{

    if ([touch.view isKindOfClass:NSClassFromString(@"UITableViewCellContentView")]) {

    return NO;

    }

    return YES;

    }

    相关文章

      网友评论

          本文标题:UITapGestureRecognizer和UItablevi

          本文链接:https://www.haomeiwen.com/subject/yvcypxtx.html