IOS UITextField. placeholder属性这个提示符的大小和颜色
用UITextField都知道,默认有个提示,原理是kvc,监听,
textField.placeholder = @"This is textField.placeholder";
[textField setValue:[UIColor green] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:15] forKeyPath:@"_placeholderLabel.font"];
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。