spromicky/StepSlider
소개
StepSlider는 미리 설정된 정수 값을 선택할 수 있도록 UISlider와 같은 슬라이더를 직접 구현한 것입니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalStepSlider
StepSlider its custom implementation of slider such as UISlider for preset values. Behind the scenes StepSlider manipulate integer indexes. Its based on drawing directlyon CAShapeLayer.

Usage
You can add StepSlider right from code with any of standard initialisers. Or you can add it directly on your storybord. Its fully IBDesignable and IBInspetable compatible.
StepSlider *slider = [[StepSlider alloc] initWithFrame:CGRectMake(10.f, 200.f, 300.f, 44.f)];
[slider setMaxCount:10];
[slider setIndex:2];
[self.view addSubview:slider];
StepSlider can be fully customised by any of this properties:
trackHeighttrackCircleRadiussliderCircleRadiusdotsInteractionEnabledtrackColorsliderCircleColorsliderCircleImage
Supports haptic feedback on valueChanged:.
Labels
From version 1.0.0 StepSlider support labels near each circle on track.
slider.labels = @[@"Some string", @"another string", @"one more"];

slider.adjustLabel - set first and last label to exactly to frame left and right.
From version 1.8.0 StepSlider support NSAttributedString as label text.

Images
For 1.2.0 and higher you can use images for sliderCircle and trackCircles. For trackCircles supported two states: normal and selected.
[self.sliderView setTrackCircleImage:[UIImage imageNamed:@"unselected_dot"] forState:UIControlStateNormal];
[self.sliderView setTrackCircleImage:[UIImage imageNamed:@"selected_dot"] forState:UIControlStateSelected];

Requirements
- version
1.3.0and above needs iOS 10.0+ - version
1.2.1supports iOS 7.0+
Installation
CocoaPods
To integrate StepSlider into your Xcode project using CocoaPods, specify it in your Podfile:
pod 'StepSlider', '~> 1.8.0'
Then, run the following command:
$ pod install
Carthage
To integrate StepSlider into your Xcode project using Carthage, specify it in your Cartfile:
github "spromicky/StepSlider" ~> 1.8.0
Run carthage update to build the framework and drag the built StepSlider.framework into your Xcode project.
Swift Package Manager
Start 1.8.0 StepSlider can be integrated in your Xcode project. When adding new package search StepSlider and select version 1.8.0 or above.
Manual Installation
Just copy StepSlider class to your project.
License
StepSlider is available under the MIT license. See the LICENSE file for more info.
관련 프로젝트 살펴보기
불러오는 중…