CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

XYYUIKit 1.0.4

XYYUIKit 1.0.4

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2017

Maintained by 1273011249.



XYYUIKit 1.0.4

  • By
  • xuyong

说明(当前最新版本1.0.3)

  构建常用的控件,方便使用。比如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]];
[self.view addSubview:textView];

pod使用

  pod 'XYYUIKit', '~> 1.0.3'

  ~~pod 'XYYUIKit', '~> 1.0.0'