Skip to content

LeeSons/CPSliderView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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; // 设置初始值
    

About

一个心形或者五星形状的滑块控件。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors