Git Product home page Git Product logo

quickrulersuite's Introduction

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

quickrulersuite's People

Contributors

pcjbird avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.