单击
1 | self.showImageView.isUserInteractionEnabled = true; |
调用的事件
1 | func tapImgViewHandle(image:UIImageView){ |
双击
1 | let tapImgTwice = UITapGestureRecognizer.init(target: self, action: #selector(tapImgViewHandleTwice(image:))) |
双击时使单击事件失效
1 | tapImgOnce.require(toFail: tapImgTwice); |