美文网首页
iOS修改textField的placeholder的字体颜色、

iOS修改textField的placeholder的字体颜色、

作者: 爱代码不爱bug | 来源:发表于2016-08-23 11:14 被阅读0次

textField.placeholder = @"username is in here!";

[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];

[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];

相关文章

网友评论

      本文标题:iOS修改textField的placeholder的字体颜色、

      本文链接:https://www.haomeiwen.com/subject/leagsttx.html