jjzjj

delayTouchesBegan

全部标签

ios - 如何缩短 "delayTouchesBegan"delays touchesBegan 的时间?

在我的一个ViewController中,我有几个包含UITapGestureRecognizer的View,以及touchesBegan的实现。我需要优先于touchesBegan进行点击,因此我将手势识别器的delaysTouchesBegan属性设置为YES。这可以正常工作,但存在一个问题:手势识别器延迟touchesBegan的时间过长。根据documentation:WhenthevalueofthepropertyisYES,thewindowsuspendsdeliveryoftouchobjectsintheUITouchPhaseBeganphasetotheview

ios - 如何缩短 "delayTouchesBegan"delays touchesBegan 的时间?

在我的一个ViewController中,我有几个包含UITapGestureRecognizer的View,以及touchesBegan的实现。我需要优先于touchesBegan进行点击,因此我将手势识别器的delaysTouchesBegan属性设置为YES。这可以正常工作,但存在一个问题:手势识别器延迟touchesBegan的时间过长。根据documentation:WhenthevalueofthepropertyisYES,thewindowsuspendsdeliveryoftouchobjectsintheUITouchPhaseBeganphasetotheview