SJSlider 1.2.4.1

SJSlider 1.2.4.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Feb 2018

Maintained by changsanjiang.


Downloads

Total1,425
Week0
Month289

Installs

Apps43
Pod Tries1
Test Targets3
powered by Segment

GitHub

Stars3
Watchers0
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files8
LOCLines of Code 526


SJSlider 1.2.4.1

  • By
  • SanJiang

SJSlider

滑块视图

    pod 'SJSlider'    

进度(支持 AutoLayout)

    SJSlider *slider = [SJSlider new];
    [self.view addSubview:slider];
    slider.frame = CGRectMake(20, 100, 200, 10);
    slider.value = 0.5;      
    

滑块 + 不切圆角

    SJSlider *slider = [SJSlider new];
    [self.view addSubview:slider];
    slider.isRound = NO;
    slider.frame = CGRectMake(20, 100, 200, 10);
    slider.thumbImageView.image = [UIImage imageNamed:@"thumb"];
    slider.value = 0.5;

缓冲

    SJSlider *slider = [SJSlider new];
    [self.view addSubview:slider];
    slider.frame = CGRectMake(20, 100, 200, 10);
    slider.value = 0.5;
    slider.enableBufferProgress = YES;
    slider.bufferProgress = 0.8;

左右标签

    SJButtonSlider *b_slider = [SJButtonSlider new];
    b_slider.frame = CGRectMake(50, 300, 300, 40);
    b_slider.slider.value = 0.3;
    b_slider.slider.thumbImageView.image = [UIImage imageNamed:@"thumb"];
    b_slider.leftText = @"00:00";
    b_slider.rightText = @"12:00";
    b_slider.titleColor = [UIColor whiteColor];
    [self.view addSubview:b_slider];