Latest 0.1.0
Homepage https://github.com/raomengyun/RNLinkUIKit
License MIT
Platforms ios 8.0
Authors

RNLinkUIKit is a wrapper for using UIKit in a link style

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

Installation

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

pod "RNLinkUIKit"

Sample code

first you should create a view maker, all the view makers have the same inheritance hierarchies as UIKit.you can create a label like this

UILabel *label = RNLinkUIKit.label
                            .numberOfLines(1)
                            .fontWithSystemSize(17.f)
                            .textColorFromHex(0x999999)
                            .text(@"Hello RNLinkUIKit!")
                            .translatesAutoresizingMaskIntoConstraints(NO)
                            .make;

RNLinkUIKit.label will create a RNLabelMake who’s aim at construct a label.but you should warn that all the view makers are attribute degenerating, for example RNLinkUIKit.label.translatesAutoresizingMaskIntoConstraints(NO) will create a RNViewMaker which is the father class of RNLabelMake because of translatesAutoresizingMaskIntoConstraints is a attribute of RNLabelMake.so you should link all the attribute in sequence.

Author

MuMu, raomengyun.gmail.com

License

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

Latest podspec

{
    "name": "RNLinkUIKit",
    "version": "0.1.0",
    "summary": "write view with link style",
    "description": "RNLinkUIKit provide us with a elegent way to initialize a view.",
    "homepage": "https://github.com/raomengyun/RNLinkUIKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "MuMu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/raomengyun/RNLinkUIKit.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "RNLinkUIKit/Classes/**/*"
}

Pin It on Pinterest

Share This