•  


GitHub - jaichaudhry/ScrollableSlider
Skip to content

jaichaudhry/ScrollableSlider

Repository files navigation

ScrollableSlider

This can be used to create a scrollable slider which indicates the current values just like a Scale i.e. representing the values using ticks.

Install

Just add the following line to your podfile.

pod 'ScrollabeSlider'

Add it in your project easily

First import the scrollable slider in your project.

#
import
 <
ScrollableSlider/JCScrollableSlider.h
>

Then configure it as follow

//
 Initialize the slider config first. The minimum and maximum are required values for the slider to be setup properly. You can check other customizable properties available in JCScrollableSliderConfig.

JCScrollableSliderConfig *sliderConfig = [[JCScrollableSliderConfig 
alloc
] 
init
];
sliderConfig.minValue = -
4
;
sliderConfig.maxValue = 
4
;

//
 Initialize the slider with above created configuration.

JCScrollableSlider *slider = [[JCScrollableSlider 
alloc
] 
initWithSliderConfig:
sliderConfig];
//
 Add the frame for your slider

slider.frame = CGRectMake(
0
, 
0
, 
375
, 
50
);
//
 Add it to your controller 

[
self
.view 
addSubview:
slider];

You can also set the delegate for the slider to look for the changes happening to the values of slider. Your class would need to follow JCScrollableSliderDelegate protocol

slider.delegate = self

Now you can implement the following methods in your project

- (
void
)scrollableSlider:(JCScrollableSlider *)slider didSelectValue:(
CGFloat
)value {
    
//
 Use this method to look for the updated values on scroll of slider.

}

- (
void
)scrollableSliderDidStopUpdating:(JCScrollableSlider *)slider {
    
//
 Use this method to know when the slider stops updating.

}

- (
void
)scrollableSliderDidStartUpdating:(JCScrollableSlider *)slider {
    
//
 Use this method to know when the slider starts updating values.

}

Preview

Your slider would look something like following after integration.

- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본