iOS 父View添加点击手势,CollectionView d
extension BottomActionSheetView :UIGestureRecognizerDelegate {
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
guard let view = touch.view else {
return false
}
if view.isDescendant(of: self.cancelButton) {
return false
}
if view.isDescendant(of: self.conversation_collectionView) {
return false
}
if view.isDescendant(of: self.action_collectionView) {
return false
}
return true
}
}
本文标题:iOS 父View添加点击手势,CollectionView d
本文链接:https://www.haomeiwen.com/subject/sxjmvrtx.html
网友评论