Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 days ago
JSON representation

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

Awesome Lists containing this project

README

        

![logo](logo.png)
[![Build Status](http://img.shields.io/travis/pcjbird/QuickRulerSuite/master.svg?style=flat)](https://travis-ci.org/pcjbird/QuickRulerSuite)
[![Pod Version](http://img.shields.io/cocoapods/v/QuickRulerSuite.svg?style=flat)](http://cocoadocs.org/docsets/QuickRulerSuite/)
[![Pod Platform](http://img.shields.io/cocoapods/p/QuickRulerSuite.svg?style=flat)](http://cocoadocs.org/docsets/QuickRulerSuite/)
[![Pod License](http://img.shields.io/cocoapods/l/QuickRulerSuite.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![CocoaPods](https://img.shields.io/cocoapods/at/QuickRulerSuite.svg)](https://github.com/pcjbird/QuickRulerSuite)
[![CocoaPods](https://img.shields.io/cocoapods/dt/QuickRulerSuite.svg)](https://github.com/pcjbird/QuickRulerSuite)
[![GitHub release](https://img.shields.io/github/release/pcjbird/QuickRulerSuite.svg)](https://github.com/pcjbird/QuickRulerSuite/releases)
[![GitHub release](https://img.shields.io/github/release-date/pcjbird/QuickRulerSuite.svg)](https://github.com/pcjbird/QuickRulerSuite/releases)
[![Website](https://img.shields.io/website-pcjbird-down-green-red/https/shields.io.svg?label=author)](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
  

[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=https://github.com/pcjbird/QuickRulerSuite)
[![Twitter Follow](https://img.shields.io/twitter/follow/pcjbird.svg?style=social)](https://twitter.com/pcjbird)