项目介绍:
CHCirSlider一个环形的Slider,两个hander,可以显示range 可做返回选择
实现代码:
[Pascal] 查看源文件 复制代码
#import "ViewController.h" #import "CHcir_Slider.h" @interface ViewController ()<CHcirsliderDelegate> @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; CHcir_Slider *cir = [[CHcir_Slider alloc]init]; cir.startAngle = -90; cir.guideLineColor = [UIColor grayColor]; cir.frame = CGRectMake(20, 100, 300, 300); cir.backgroundColor = [UIColor clearColor]; [self.view addSubview:cir]; cir.delegate = self; } - (void)minIntValueChanged:(CGFloat)minIntValue{ NSLog(@"minIntValue%f",minIntValue); } - (void)maxIntValueChanged:(CGFloat)maxIntValue{ NSLog(@"maxIntValue%f",maxIntValue); } @end
cir_Slider.zip
(38.81 KB, 下载次数: 411)
2016-8-19 12:33 上传
点击文件名下载附件
demo