设置textField的placeHolder颜色的设置

来源:互联网 发布:淘宝创维官方旗舰店 编辑:程序博客网 时间:2024/05/11 20:28
UIColor*color = [UIColorblackColor];
textField.attributedPlaceholder= [[NSAttributedStringalloc]initWithString:@"密码"attributes:@{NSForegroundColorAttributeName: color}];

0 0