iOS 11之后,会先走touch事件,再走tableView的didselect事件
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
if (touches.anyObject.view == self.blackView) {
[self dismiss];
}
}
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
网友评论