Watch 1 Star 0 Fork 0

MorpLCP / CPSliderViewObjective-CMIT

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
一个自定义的滑块控件 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

#CPSliderView

简介

CPSliderView,是一个自定义的滑块控件,简单易用,比较好看。 主要用于评价啥的。 ##使用方法 导入头文件 #improt "CPSliderView"初始化并设置相关属性。

CPSliderView *slider = [[CPSliderView alloc] initWithFrame:CGRectMake(50, 100, self.view.frame.size.width - 100, 30) style:CPSliderViewStyleHeart count:5 valueChangeBlock:^(CGFloat value) {
        NSLog(@"%.1f", value);
    }];
slider.trajectoryColor = [UIColor lightGrayColor]; // 设置轨迹颜色
slider.progressColor = [UIColor orangeColor]; // 设置已划过的颜色
slider.value = 0.5; // 设置初始值
    

Comments ( 0 )

You need to Sign in for post a comment

Help Search

Gitee_sixth 5th_float_left_close