Latest 1.0.3
Homepage https://github.com/pcjbird/QuickRulerSuite
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit, CoreGraphics
Authors

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

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

特性 / Features

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

演示 / Demo

QuickRulerSuite

安装 / 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

  
QuickRulerSuite

Twitter URL
Twitter Follow

Latest podspec

{
    "name": "QuickRulerSuite",
    "version": "1.0.3",
    "summary": "A suite to quick create ruler control on iOS, which seems to be attractive. iOSu4e0au6807u5c3au63a7u4ef6u7684u96c6u5408u3002",
    "description": "A suite to quick create ruler control on iOS, which seems to be attractive. iOSu4e0au6807u5c3au63a7u4ef6u7684u96c6u5408uff0cu8be5u9879u76eeu652fu6301 Cocoapods u7684 subspecu3002",
    "homepage": "https://github.com/pcjbird/QuickRulerSuite",
    "license": "MIT",
    "authors": {
        "pcjbird": "[email protected]"
    },
    "source": {
        "git": "https://github.com/pcjbird/QuickRulerSuite.git",
        "tag": "1.0.3"
    },
    "social_media_url": "http://www.lessney.com",
    "requires_arc": true,
    "documentation_url": "https://github.com/pcjbird/QuickRulerSuite/blob/master/README.md",
    "screenshots": "https://github.com/pcjbird/QuickRulerSuite/blob/master/logo.png",
    "platforms": {
        "ios": "8.0"
    },
    "frameworks": [
        "Foundation",
        "UIKit",
        "CoreGraphics"
    ],
    "source_files": "QuickRulerSuite/QuickRulerSuite.h",
    "public_header_files": "QuickRulerSuite/QuickRulerSuite.h",
    "resource_bundles": {
        "QuickRulerSuite": [
            "QuickRulerBundles/*.{png}"
        ]
    },
    "pod_target_xcconfig": {
        "OTHER_LDFLAGS": "-lObjC"
    },
    "subspecs": [
        {
            "name": "QuickSportsRuler",
            "source_files": "QuickRulerSuite/QuickSportsRuler/*.{h,m}",
            "public_header_files": [
                "QuickRulerSuite/QuickSportsRuler/QuickSportsRuler.h",
                "QuickRulerSuite/QuickSportsRuler/QuickSportsRulerStyle.h"
            ]
        }
    ]
}

Pin It on Pinterest

Share This