CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✓ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Mar 2015 |
Maintained by Vadym Markov.
A custom reusable circular slider control. Values range is between minimumValue and maximumValue (from 0 to 1 by default).
Please check Demo project for a basic example on how to use MARKCircularSlider.
value - the current value of the sliderminimumValue - the minimum value of the slider's rangemaximumValue - the maximum value of the slider's rangeCustomizable colors:
filledColor - color of the filled areaunfilledColor - color of the unfilled area- (void)viewDidLoad
{
// ...
self.slider = [[MARKCircularSlider alloc] initWithFrame:CGRectZero];
self.slider.filledColor = [UIColor blueColor];
self.slider.unfilledColor = [UIColor lightGrayColor];
self.slider.minimumValue = 0;
self.slider.maximumValue = 72;
self.slider.value = 10;
[self.slider addTarget:self
action:@selector(sliderValueDidChange:)
forControlEvents:UIControlEventValueChanged];
[self.view addSubview:self.slider];
// ...
}
- (void)sliderValueDidChange:(MARKCircularSlider *)slider
{
NSLog(@"%0.2f", slider.value);
}
MARKCircularSlider is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'MARKCircularSlider'
Vadym Markov, [email protected]
MARKCircularSlider is available under the MIT license. See the LICENSE file for more info.