SDRangeSlider 1.0.3

SDRangeSlider 1.0.3

Maintained by Novo.



  • By
  • Meterwhite

扩展XIB,Storyboard的编辑功能,强力推荐!

Expand XIB, Storyboard editing functions, highly recommended!

SDRangeSlider

SDRangeSlider icon

Introduce【介绍】

  • Skir的(SD)iOS双滑块范围选择器
  • 随手赞一赞.好运上百万.
  • Easy-to-use iOS range slider selector
  • start start start.lucK lucK lucK.

Import

  • Drag floder SDRangeSlider to your project.
#import "SDRangeSlider.h"

CocoaPods

pod 'SDRangeSlider'

速览 Quick View

SDRangeSlider* slider = [[SDRangeSlider alloc] initWithFrame:CGRectMake(0, 0, 300, 30)];
[slider eventValueDidChanged:^(SDRangeSliderValues *values) {
    double left = values.left.doubleValue;
    double right= values.right.doubleValue;
}];
[self.view addSubview:slider];

//others
//    slider.minimumSize = 10;
//    slider.offsetOfAdjustLineStart = -12;//look at viewHierarcy
//    slider.offsetOfAdjustLineEnd = 15;//look at viewHierarcy
//    [slider usingValueUnequal];
//    [slider update];//May be used in autolayout, layoutSubviews:... ...
//    ... ...

Support xib

  • Better to call update when constraints layout.

More code in demo ...