Expand XIB, Storyboard editing functions, highly recommended!
SDRangeSlider
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.