Latest 1.0.4
Homepage https://github.com/1273011249/XYYUIKit
License MIT
Platforms ios 7.0, requires ARC
Authors

说明(当前最新版本1.0.4)

  构建常用的控件,方便使用。比如button,label等

使用方法

/*基本插件Label*/
UILabel *myLabel = [UILabel labelTextColor:[UIColor redColor] fontSize:20];
myLabel.frame = CGRectMake(100, 100, 200, 44);
myLabel.text = @"中国共产党万岁!!!";
[self.view addSubview:myLabel];

/*基本插件Button*/
UIButton *myButton = [UIButton buttonWithText:@"按钮点击" textColor:[UIColor blueColor] textFontSize:15 action:@selector(buttonClick:) target:self];
myButton.frame = CGRectMake(100, 200, 160, 44);
[self.view addSubview:myButton];

/*基本插件Button*/
UIButton *newButton = [UIButton buttonWithImageName:@"ui" action:@selector(buttonClickNew:) target:self];
newButton.frame = CGRectMake(100, 300, 160, 44);
[self.view addSubview:newButton];

/*基本插件TextView*/
UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(100, 300 + 50, 160, 44)];
[textView textViewPlaceholderText:@"请输入文字" fontSize:15 textColor:[UIColor blackColor] placeholderColor:[UIColor lightGrayColor]];
textView.limiteNumber = 10; //limiteNumber 默认1000个字符
[self.view addSubview:textView];

pod使用

pod 'XYYUIKit', '~> 1.0.4'

  ~~pod ‘XYYUIKit’, ‘~> 1.0.3’

  ~~pod ‘XYYUIKit’, ‘~> 1.0.0’

Latest podspec

{
    "name": "XYYUIKit",
    "version": "1.0.4",
    "summary": "package userful tools catagory",
    "description": "package tools like UIButton Catagory",
    "homepage": "https://github.com/1273011249/XYYUIKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "xuyong": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/1273011249/XYYUIKit.git",
        "tag": "1.0.4"
    },
    "source_files": [
        "Classes",
        "XYYUIKit/Classes/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "public_header_files": "XYYUIKit/Classes/*.h",
    "requires_arc": true
}

Pin It on Pinterest

Share This