XYYUIKit 1.0.4

XYYUIKit 1.0.4

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最新发布2017年3月

1273011249 维护。



XYYUIKit 1.0.4

  • 作者:
  • 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'