Latest 0.0.1
Homepage https://github.com/gejiangs/UIViewCategory
License MIT
Platforms ios 8.0
Authors

使用说明


#import "UIView+Add.h"

UILabel *lbl    = [self.view addLabel];
UILabel *lbl2   = [self.view addLabel:@"lab2"];
UILabel *lbl3   = [self.view addLabel:@"lab3" font:[UIFont boldSystemFontOfSize:20]];
UILabel *lbl4   = [self.view addLabel:@"lab4" font:[UIFont systemFontOfSize:25] color:[UIColor redColor]];

//创建的默认numberOfLines为0
lbl2.numberOfLines = 1;
[lbl mas_makeConstraints:^(MASConstraintMaker *make) {
    make.top.offset(50);
    make.left.offset(10);
    make.right.offset(-10);
}];

//其它UITextField、UITextView创建方式都一样,简单,一看就懂

Latest podspec

{
    "name": "UIView+Add",
    "version": "0.0.1",
    "summary": "u5febu901fu521bu5efau539fu751fUIViewu5bf9u8c61.",
    "description": "u5febu901fu521bu5efau539fu751fUIViewu5bf9u8c61uff0cu652fu6301Masonry",
    "homepage": "https://github.com/gejiangs/UIViewCategory",
    "license": "MIT",
    "authors": {
        "gejiangs": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/gejiangs/UIViewCategory.git",
        "tag": "0.0.1"
    },
    "source_files": "UIViewAdd/*"
}

Pin It on Pinterest

Share This