您的位置:首页 > 移动开发 > IOS开发

iOS开发:修改textfield的placeholder字体和颜色

2017-03-16 17:16 549 查看
[textfield setValue:[UIColor greenColor] forKeyPath:@"_placeholderLabel.textColor"];

[textfield setValue:[UIFont boldSystemFontOfSize:15] forKeyPath:@"_placeholderLabel.font"];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios