iOS技术专题

修改TextField的占位符(placeholder)大小和颜

2016-09-22  本文已影响7人  InitWithYou
textField.placeholder = @"请输入用户名";  
[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];  
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
上一篇 下一篇

猜你喜欢

热点阅读