Expand XIB, Storyboard editing functions, highly recommended!
- Skir的(SD)iOS双滑块范围选择器
- 随手赞一赞.好运上百万.
- Easy-to-use iOS range slider selector
- start start start.lucK lucK lucK.
- Drag floder
SDRangeSlider
to your project.
#import "SDRangeSlider.h"
pod 'SDRangeSlider'
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:... ...
// ... ...
- Better to call
update
when constraints layout.