How to enable “tap and slide” in a UISlider?

后端 未结 14 561
不知归路
不知归路 2020-12-03 20:54

What I want to get is a UISlider which lets the user not only slide when he starts on its thumbRect, but also when he taps elsewhere. When the user

14条回答
  •  一向
    一向 (楼主)
    2020-12-03 21:33

    From Apple,

    https://developer.apple.com/forums/thread/108317

    Now this works fine on iOS 10 and iOS 11. You can slide as usual and thanks to the above code you can tap on slider and it slides automatically. However in iOS 12 this doesn't work. You have to force touch on it for tap to work

提交回复
热议问题