iOS/iOS双滑块选择器
The double slider selector for iOS/iOS双滑块选择器
Swift UI相关控件
共25Star
详细介绍
Expand XIB, Storyboard editing functions, highly recommended!
SDRangeSlider
Introduce【介绍】
- Skir的(SD)iOS双滑块范围选择器
- 随手一赞.好运百万.
- Easy-to-use iOS range slider selector
- Once start me.Day day up.
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.