Latest 1.0.4
Homepage https://github.com/MarioBiuuuu/MBScaleplateSlider
License MIT
Platforms ios 7.0
Authors

iOS仿标尺 Slider滑动选择器

使用方法:

  1. 使用Cocoapods,在Podfile中添加 pod ‘MBScaleplateSlider’, 执行 pod install
  2. 直接将MBScaleplateSlider.h/m拖入项目内

    MBScaleplateSlider *slider  = [MBScaleplateSlider sliderWithFrame:CGRectMake(0, 100, self.view.bounds.size.width, 120) minValue:1000 maxValue:2000 step:10 groupMaxNum:10 unit:@"nian" hasMiddleLine:YES];
    
    slider.delegate = self;
    slider.tintLineColor = [UIColor redColor];
    slider.initialAtMiddle = YES;
    
    [self.view addSubview:slider];
  3. 处理滑动返回值回调

    - (void)MBScaleplateSlider:(MBScaleplateSlider *)slider valueChange:(NSUInteger)value {
        NSLog(@"---%@", @(value));  
    }

Latest podspec

{
    "name": "MBScaleplateSlider",
    "version": "1.0.4",
    "summary": "iOSu4effu6807u5c3a Slideru6ed1u52a8u9009u62e9u5668",
    "description": "iOSu4effu6807u5c3a u5b9au5236 Slideruff0cu53efu8bbeu7f6eu6700u5927u6700u5c0fu503cu4ee5u53cau4e00u7ec4u663eu793au523bu5ea6u6570u91cf, 1.0.4 u589eu52a0u4e24u4fa7u8499u7248",
    "homepage": "https://github.com/MarioBiuuuu/MBScaleplateSlider",
    "license": "MIT",
    "authors": {
        "u5f20u6653u98de": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/MarioBiuuuu/MBScaleplateSlider.git",
        "tag": "1.0.4"
    },
    "source_files": [
        "MBScaleplateSlider",
        "MBScaleplateSliderDemo/MBScaleplateSlider/**/*.{h,m}"
    ]
}

Pin It on Pinterest

Share This