Pan gesture interferes with UISlider

前端 未结 2 955
时光说笑
时光说笑 2020-12-20 12:01

I\'m trying to create a sliding menu (kind of like in Facebook/Twitter apps) and my version successfully uses pan gestures for this effect. The class is called \"SlideMenu\"

2条回答
  •  -上瘾入骨i
    2020-12-20 12:32

    I also had some issues with it, the source of my problem was that the

    gestureRecogniser.cancelsTouchesInView

    property is true by default, which caused a weird delay effect on my UISlider when tried to drag it. This solved

    gestureRecogniser.cancelsTouchesInView = false

    ps.: also make sure the delaysTouchesBegan, delaysTouchesEnded are set to false

提交回复
热议问题