Latest 1.0.0
Homepage https://github.com/changsanjiang/SJSlider
License MIT
Platforms ios 8.0, requires ARC
Dependencies Masonry
Frameworks UIKit
Authors

滑块视图

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

Latest podspec

{
    "name": "SJSlider",
    "version": "1.0.0",
    "summary": "Slide view with buffer / slide / progress.",
    "description": "https://github.com/changsanjiang/SJSlider/blob/master/README.md",
    "homepage": "https://github.com/changsanjiang/SJSlider",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "SanJiang": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/changsanjiang/SJSlider.git",
        "tag": "v1.0.0"
    },
    "source_files": "SJSlider/*.{h,m}",
    "frameworks": "UIKit",
    "requires_arc": true,
    "dependencies": {
        "Masonry": []
    }
}

Pin It on Pinterest

Share This