Latest 1.0.3
Homepage https://github.com/MasterShady/ChainProperty
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

usage

#import "UIView+ChainProperty.h"

    UITextField *tf1 = [UITextField new];
    [self.view addSubview:tf1];
    //必须以propertyConfigure开头
    tf1.propertyConfigure.frame(CGRectMake(0, 200, 300, 50)).backgroundColor([UIColor redColor]).text(@"whata nice day")
    .textColor([UIColor blackColor]).borderColor([UIColor yellowColor]).borderWidth(0.5).textAlignment(NSTextAlignmentCenter);

    UIButton *btn = [UIButton new];
    btn.propertyConfigure.normalTitle(@"normalTitle").selectedTitle(@"selectedTitle").normalTitleColor([UIColor blackColor]).
    selectedTitleColor([UIColor yellowColor]).frame(CGRectMake(0, 300, 100, 50)).backgroundColor([UIColor greenColor]).fontSize(15);
    [btn addTarget:self action:@selector(click:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];

Latest podspec

{
    "name": "ChainProperty",
    "version": "1.0.3",
    "summary": "shortway to set properties of UIViews and its subClass by using doc",
    "homepage": "https://github.com/MasterShady/ChainProperty",
    "license": "MIT",
    "platforms": {
        "ios": "8.0"
    },
    "authors": {
        "ShadyLew": "[email protected]"
    },
    "source": {
        "git": "https://github.com/MasterShady/ChainProperty.git",
        "tag": "1.0.3"
    },
    "source_files": "ChainProperty/*.{h,m}",
    "requires_arc": true,
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This