NSDictionary *attrs = @{NSForegroundColorAttributeName:[UIColor blackColor]};
textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"文字" attributes:attrs];
NSDictionary *attrs = @{NSForegroundColorAttributeName:[UIColor blackColor]};
textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"文字" attributes:attrs];
本文标题:iOS TextField中placeholder颜色设置
本文链接:https://www.haomeiwen.com/subject/ghjklltx.html
网友评论