logo头像

小玉的技术博客

iOS设置textfield.placeholder字体及颜色

1
2
3
textField.placeholder = @"请输入手机号码";
[textField setValue:[UIColor blue] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont systemFontOfSize:14] forKeyPath:@"_placeholderLabel.font"];
支付宝打赏 微信打赏

赞赏是不耍流氓的鼓励