iOS使用的圆形滑块:MARKCircularSlider

分享到:

MARKCircularSlider 是一个易于使用的圆形滑块。

Available control properties

  • value- the current value of the slider
  • minimumValue- the minimum value of the slider's range
  • maximumValue- the maximum value of the slider's range

Available styling properties

Customizable colors:

  • filledColor- color of the filled area
  • unfilledColor- color of the unfilled area

Usage

In your View Controller

- (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);
}

iOS使用的圆形滑块:MARKCircularSlider

项目主页:http://www.open-open.com/lib/view/home/1426683478429

昵    称:
验证码:

相关文档: