Skip to content

A suite to quick create ruler control on iOS, which seems to be attractive. iOS上标尺控件的集合。

License

Notifications You must be signed in to change notification settings

pcjbird/QuickRulerSuite

Repository files navigation

logo Build Status Pod Version Pod Platform Pod License CocoaPods CocoaPods GitHub release GitHub release Website

QuickRulerSuite

A suite to quick create ruler control on iOS, which seems to be attractive. iOS上标尺控件的集合。

特性 / Features

  1. 快速创建一个标尺控件。
  2. 支持设置最小最大刻度,支持设置最小最大限制值,支持自定义标尺样式。

演示 / Demo

安装 / Installation

方法一:QuickRulerSuite is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'QuickRulerSuite'

使用 / Usage

  

@property (weak, nonatomic) IBOutlet QuickSportsRuler *ruler;

  

self.ruler.delegate = self;
self.ruler.rulerStyle.unitValue = 1000;
self.ruler.rulerStyle.minTickValue = -1000;
self.ruler.rulerStyle.maxTickValue = 30000;
self.ruler.rulerStyle.minLimitValue = 2000;
self.ruler.rulerStyle.maxLimitValue = 28000;
self.ruler.rulerStyle.stepSpacing = 16.0f;
self.ruler.rulerStyle.initValue = 8000;
[self.ruler setNeedsReloadStyle];

     

-(void)quickSportsRulerDidScroll:(QuickSportsRuler *)ruler resolvedValue:(NSString *)value
{
   self.valLabel.text = value;
}

     

关注我们 / Follow us

  

Twitter URL Twitter Follow

About

A suite to quick create ruler control on iOS, which seems to be attractive. iOS上标尺控件的集合。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published