两者同时使用时touchesBegan执行延时touchesCancelled先执行因此看不到触摸效果,通过断点可知touchesBegan是执行了的并且断点后每次点击都会有效果,对UITapGestureRecognizer添加 _tapGR.cancelsTouchesInView = NO;可解决问题
两者同时使用时touchesBegan执行延时touchesCancelled先执行因此看不到触摸效果,通过断点可知touchesBegan是执行了的并且断点后每次点击都会有效果,对UITapGestureRecognizer添加 _tapGR.cancelsTouchesInView = NO;可解决问题
本文标题:解决touchs与UITapGestureRecognizer冲
本文链接:https://www.haomeiwen.com/subject/hremittx.html
网友评论