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

Its possible change the number formatter to date formatter? #80

Closed iosdroid closed 5 years ago

iosdroid commented 6 years ago

I need to create the range slider between two different dates.. its possible?

henrique2601 commented 6 years ago

You can override a NumberFormatter to return what you want:

class MyDateNumberFormatter: NumberFormatter { override func string(from number: NSNumber) -> String { return myCustomFunction(number) } }