UISlider events

前端 未结 4 2087
轮回少年
轮回少年 2021-02-05 09:12

I\'m using an UISlider, its updated automatically except the user is touching the sliderbutton. therefore i did this in the function which updates automatically by an NSTimer:

4条回答
  •  醉梦人生
    2021-02-05 09:50

    This is marked solved, and yet I'd like to add another solution to this that I feel is cleaner.

    if (!progressSlider.highlighted) {
        [progressSlider setValue: progressValue];
    }
    

提交回复
热议问题