https://github.com/pcjbird/quickrulersuite
A suite to quick create ruler control on iOS, which seems to be attractive. iOS上标尺控件的集合。
https://github.com/pcjbird/quickrulersuite
ios ruler sports sports-app suite
Last synced: 4 months ago
JSON representation
A suite to quick create ruler control on iOS, which seems to be attractive. iOS上标尺控件的集合。
- Host: GitHub
- URL: https://github.com/pcjbird/quickrulersuite
- Owner: pcjbird
- License: mit
- Created: 2018-06-30T02:12:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-18T14:55:17.000Z (almost 8 years ago)
- Last Synced: 2025-03-24T18:45:12.157Z (over 1 year ago)
- Topics: ios, ruler, sports, sports-app, suite
- Language: Objective-C
- Homepage:
- Size: 328 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://travis-ci.org/pcjbird/QuickRulerSuite)
[](http://cocoadocs.org/docsets/QuickRulerSuite/)
[](http://cocoadocs.org/docsets/QuickRulerSuite/)
[](https://www.apache.org/licenses/LICENSE-2.0.html)
[](https://github.com/pcjbird/QuickRulerSuite)
[](https://github.com/pcjbird/QuickRulerSuite)
[](https://github.com/pcjbird/QuickRulerSuite/releases)
[](https://github.com/pcjbird/QuickRulerSuite/releases)
[](https://pcjbird.github.io)
# 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

[](https://twitter.com/intent/tweet?text=https://github.com/pcjbird/QuickRulerSuite)
[](https://twitter.com/pcjbird)