SJSlider 1.4.0

SJSlider 1.4.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jun 2019

Maintained by changsanjiang.



SJSlider 1.4.0

  • 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];

Contact