设置textField的placeholder字体的颜色,默认是灰色

//设置textFieldplaceholder字体的颜色,默认是灰色
 UIColor *color = [UIColor whiteColor];
 self.loginNumText.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"请输入用户名" attributes:@{NSForegroundColorAttributeName: color}];

posted on 2015-07-30 10:10  codemaker313  阅读(1052)  评论(0编辑  收藏  举报

导航