Tap on UISlider to Set the Value

前端 未结 6 549
無奈伤痛
無奈伤痛 2021-02-01 19:20

I created a Slider (operating as control of the video, like YouTube has at the bottom) and set the maximum (duration) and minimum values. And then used SeekToTime t

6条回答
  •  情书的邮戳
    2021-02-01 20:03

    pteofil's answer should be the accepted answer here.

    Below is the solution for Xamarin for everyone's interested:

    public override bool BeginTracking(UITouch uitouch, UIEvent uievent)
    {
        return true;
    }
    

    As pteofil mentioned, you need to subclass the UISlider for this to work.

提交回复
热议问题