Latest 0.1.0
Homepage https://github.com/Haidora/HaidoraRuler
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit, Foundation
Authors

CI Status
Version
License
Platform

Usage

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

Example

Ruler<NSNumber *> *width = [Ruler<NSNumber *> iPhoneHorizontal:@(10), @(20), @(30), nil];
Ruler<NSNumber *> *height = [Ruler iPhoneVertical:@(5), @(10), @(20), @(30), nil];
NSLog(@"width:%@ height:%@", width.value, height);

Ruler<UIFont *> *font = [Ruler<UIFont *> iPhone:[UIFont systemFontOfSize:12], [UIFont systemFontOfSize:14], [UIFont systemFontOfSize:16], [UIFont systemFontOfSize:18], nil];
NSLog(@"font:%@", font.value);

Installation

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

pod "HaidoraRuler"

Inspired by these projects:

Author

mrdaios, [email protected]

License

HaidoraRuler is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "HaidoraRuler",
    "version": "0.1.0",
    "summary": "Size matters, you need a ruler.",
    "description": "Size matters, you need a ruler,may be you need for oc.",
    "homepage": "https://github.com/Haidora/HaidoraRuler",
    "license": "MIT",
    "authors": {
        "mrdaios": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Haidora/HaidoraRuler.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "frameworks": [
        "UIKit",
        "Foundation"
    ]
}

Pin It on Pinterest

Share This