https://github.com/ascorbic/logarithmic-slider
Logarithmic UISlider subclass
https://github.com/ascorbic/logarithmic-slider
Last synced: 9 months ago
JSON representation
Logarithmic UISlider subclass
- Host: GitHub
- URL: https://github.com/ascorbic/logarithmic-slider
- Owner: ascorbic
- Created: 2012-01-19T11:42:42.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-19T11:43:26.000Z (about 14 years ago)
- Last Synced: 2025-03-29T07:22:15.143Z (10 months ago)
- Language: Objective-C
- Homepage:
- Size: 86.9 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Logarithmic Slider
### Logarithmic UISlider subclass
There are lots of cases where I've found myself needing sliders with finer control at the low end than at the high end. Examples include time duration, with milliseconds going all the way up to days. The best way to do this is with a logarithmic scale. This UISlider subclass for iOS implements this, with a base e scale.
### Usage
Add the files to your project and include `LogarithmicSlider.h` in your view controller header. Add a normal UISlider in Interface Builder. In the Identity Inspector, change the custom class to _LogarithmicSlider_. Set the minimum, maximum and default values in the Attributes Inspector as normal.
#### IMPORTANT
You shouldn't use the `slider.value` or `[slider setValue:animated:]` methods. Instead use the `slider.sliderValue` and `[slider setSliderValue:animated:]` variants to get and set the value of the slider.
### LICENCE
© Copyright Matt Kane 2012
Available under the MIT licence.