UITapGestureRecognizer 手势冲突

func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
    if touch.view?.isDescendant(of: contentView) == true {
        return false
     }
     return true
}

你可能感兴趣的:(UITapGestureRecognizer 手势冲突)