iOS 修改textField的placeholder的字体颜色

来源:互联网 发布:淘宝卖家公益怎么收费 编辑:程序博客网 时间:2024/06/10 11:48


修改 UITextfield 的 Placeholder字体的颜色 方法如下:

 [userPasswdTFsetValue:[UIColorcolorWithRed:0.26green:0.26blue:0.04alpha:0.9]forKeyPath:@"_placeholderLabel.textColor"];


0 0
原创粉丝点击