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

Feature Request: Customize label for min and maximum value #78

Closed superdev89 closed 6 years ago

superdev89 commented 6 years ago

Can I customize the label for the maximum value?

For example, I'd like to put label 'No limit' for maximum value if user drags to maximum and treat only min value in this case.

TomThorpe commented 6 years ago

Hi!

I think your best bet is extending NSNumberFormatter, and implementing stringForObjectValue so that if the value = maxvalue of the slider, it adds whatever text you want.

Then set that as the numberFormatterOverride property