您的位置:首页 > 产品设计 > UI/UE

UITextField属性--PlaceHolder颜色自定义

2014-08-14 10:34 302 查看
//设置placeHolder的颜色

<span style="font-size:18px;"> UIColor *color = [UIColor whiteColor];
self.attributedPlaceholder = [[NSAttributedStringalloc] initWithString:@"请输入用户名" attributes:@{NSForegroundColorAttributeName: color}];</span>


注:self就是定义的UITextField。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  IOS开发 Xcode Object-c