Skip to content

2023🌍 Double range slider selector for iOS.iOS双滑块范围选择器

License

Notifications You must be signed in to change notification settings

Meterwhite/SDRangeSlider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

扩展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 ...

About

2023🌍 Double range slider selector for iOS.iOS双滑块范围选择器

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published