GithubHelp home page GithubHelp logo

ox8badfood / crrulercontrol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cleveroad/crrulercontrol

0.0 0.0 0.0 3.11 MB

Customizable component, created by Cleveroad iOS developers, is aimed at turning a simple ruler into a handy and smart instrument

Home Page: https://www.cleveroad.com

License: MIT License

Ruby 4.49% Objective-C 95.51%

crrulercontrol's Introduction

CRRulerControl Awesome

CI Status Version License Platform

Header image

Meet CRRulerControl - Customizable Control for iOS

Cleveroad is happy to present a new library for iOS apps โ€” CRRulerControl. Whether your app is going to operate over graphics or any scalable elements, ruler is crucial to provide users convenience and enhance their experience. Customizable component, created by Cleveroad iOS developers, is aimed at turning a simple ruler into a handy and smart instrument.

Demo image

#####Check out the animation of CRRulerControl for iOS on YouTube in HD quality.

If you are ready to take a fresh look at traditional control elements, start with the Ruler. Integrate your iOS app with CRRulerControl library and try out all the benefits it provides.

Awesome

A CocoaPod that simplifies the process of setting and reading values from the ruler.

Creating control elements is rather a simple task. However, it may take fairly large amount of time. To save this time, Cleveroad has created one of the control elements called CRRulerControl. CRRulerControl is a UIControl that can adjust to any your requirements in just a few seconds.

Requirements

  • iOS 8 or higher

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

CRRulerControl is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "CRRulerControl"

and run pod install in terminal. Usage

CRRulerControl

####You can use storyboard to create a control element.

//Setting the distance between the minimal marks.
- @property (nonatomic) IBInspectable CGFloat spacingBetweenMarks; 

//Setting ruler width 
- @property (nonatomic) IBInspectable CGFloat rulerWidth; 

//Setting the minimum value
- @property (nonatomic) IBInspectable CGFloat rangeFrom; 

//Setting the length of liner
- @property (nonatomic) IBInspectable CGFloat rangeLength; 

//Setting value.
- @property (nonatomic) IBInspectable CGFloat value; 

//Setting image of pointer 
- @property (nonatomic, readonly) UIImageView *pointerImageView; 

- @property (nonatomic, readonly) UIScrollView *scrollView; 

//Setting with animation or without it. 
- (void)setValue:(CGFloat)value animated:(BOOL)animated; 

- (CGRect)frameForPointerImageView; 

- (CGPoint)contentOffsetForValue:(CGFloat)value; 

//To set the size of the lines
- (void)setSize:(CGSize)size forMarkType:(CRRulerMarkType)markType; 

//To set the color of the lines
- (void)setColor:(UIColor *)color forMarkType:(CRRulerMarkType)markType; 

//To set the text of the lines
- (void)setTextColor:(UIColor *)textColor forMarkType:(CRRulerMarkType)markType; 

//To set the font to the text
- (void)setFont:(UIFont *)font forMarkType:(CRRulerMarkType)markType; 

//To set the frequency of lines appearance
- (void)setFrequency:(CGFloat)frequency forMarkType:(CRRulerMarkType)markType; 

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Support

If you have any other questions regarding the use of this library, please contact us for support at [email protected] (email subject: "CRRulerControl. Support request.")

Author

Sergey Chuchukalo

License

The MIT License (MIT)

Copyright (c) 2016 Cleveroad Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

crrulercontrol's People

Contributors

bymiracles avatar chuchukalosergey avatar jekaua 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.