Tap on UISlider to Set the Value

前端 未结 6 406
無奈伤痛
無奈伤痛 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 19:55

    The probably simplest solution would be, using the "touch up inside" action, connected trough the interface builder.

    @IBAction func finishedTouch(_ sender: UISlider) {
    
        finishedMovingSlider(sender)
    }
    

    This will get called as soon as your finger leaves the phone screen.

提交回复
热议问题