首页 > 技术文章 > UITextField的placeholder的字体颜色和大小

qianyindichang 2014-09-28 11:58 原文

[_nameText setValue: [UIColor lightGrayColor] forKeyPath:@"_placeholderLabel.textColor"];

[_nameText setValue:[UIFont boldSystemFontOfSize:13] forKeyPath:@"_placeholderLabel.font"];

推荐阅读