设置textField的placeholder字体的颜色,默认是灰色
//设置textField的placeholder字体的颜色,默认是灰色
UIColor *color = [UIColor whiteColor];
UIColor *color = [UIColor whiteColor];
self.loginNumText.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"请输入用户名" attributes:@{NSForegroundColorAttributeName: color}];
posted on 2015-07-30 10:10 codemaker313 阅读(1076) 评论(0) 收藏 举报
浙公网安备 33010602011771号