TomThorpe / TTRangeSlider

A slider, similar in style to UISlider, but which allows you to pick a minimum and maximum range.
MIT License
968 stars 204 forks source link

Non-continuous callback #76

Closed RishabhTayal closed 7 years ago

RishabhTayal commented 7 years ago

Is there a way to not get continuous callback when the slider is changed? I want to the delegate method to be fired only when the finger is released from slider.

RishabhTayal commented 7 years ago

I found the solution. There are two more delegate methods that we can implement. I should have checked the source code. 👍

https://github.com/TomThorpe/TTRangeSlider/blob/6dbbfae652ad9f587515e672d92f0595ca78c1d0/Pod/Classes/TTRangeSliderDelegate.h#L24

https://github.com/TomThorpe/TTRangeSlider/blob/6dbbfae652ad9f587515e672d92f0595ca78c1d0/Pod/Classes/TTRangeSliderDelegate.h#L29