代码库> 其他> HwwCreateManager
HwwCreateManager
关注
上传者:wenwu12538 分类:其他(Others)
查看次数:214 下载次数:14
上传时间:2020-03-24 大小:511 B
UIButton *button = [[UIButton alloc]init];
[button hww_createButtonWithManager:^(HwwCreateManager * _Nonnull manager) {
manager.title(@"点我",UIControlStateNormal)
.titlecolor([UIColor redColor],UIControlStateNormal)
.titlecolor([UIColor grayColor],UIControlStateHighlighted)
.backgroundColor([UIColor systemYellowColor])
.cornerRadius(5)
.borderWidth(1)
.borderColor([UIColor blackColor])
.frame(CGRectMake(100, 600, 100, 30))
.target(NSStringFromSelector(@selector(buttontest)),self,UIControlEventTouchUpInside);
}];
[self.view addSubview:button];

UITextField *textfield = [[UITextField alloc]init];
[textfield hww_createTextFieldWithManager:^(HwwCreateManager * _Nonnull manager) {
manager.placeholder(@"123").testColor([UIColor systemRedColor])
.frame(CGRectMake(100, 100, 100, 30))
.clearButtonMode(UITextFieldViewModeAlways)
.borderStyle(UITextBorderStyleRoundedRect)
.secureTextEntry(YES)
.autocorrectionType(UITextAutocorrectionTypeYes)
.keyboardType(UIKeyboardTypeNumberPad)
.clearsOnBeginEditing(YES)
.adjustsFontSizeToFitWidth(YES)
.minimumFontSize(10)
.returnKeyType(UIReturnKeySend)
.keyboardAppearance(UIKeyboardAppearanceDark);
}];
[self.view addSubview:textfield];
收藏
我来说两句
发表评论
您还没有登录!请登录注册
所有评论(0


下载过该代码的还下载了
综合评论
提示
sina weixin mail 回到顶部