设置 textField.placeholder的颜色和大小

textField.placeholder = @"请输入手机号码";
[textField setValue:[UIColor blue] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont systemFontOfSize:14] forKeyPath:@"_placeholderLabel.font"];
posted @ 2015-10-09 15:40  求真求道  阅读(2288)  评论(0编辑  收藏  举报