美文网首页
touchBegin事件

touchBegin事件

作者: 阶梯 | 来源:发表于2017-10-18 11:27 被阅读5次

iOS 11之后,会先走touch事件,再走tableView的didselect事件

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{

    if (touches.anyObject.view == self.blackView) {
        [self dismiss];
    }
}

相关文章

网友评论

      本文标题:touchBegin事件

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