标签:ios
用UITextField都知道,默认有个提示,原理是kvc,监听,
textField.placeholder = @"This is textField.placeholder";
[textField setValue:[UIColor green] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:15] forKeyPath:@"_placeholderLabel.font"];
本文出自 “雪花飞落满人间” 博客,请务必保留此出处http://smengxiang.blog.51cto.com/11204872/1860694
IOS UITextField. placeholder属性这个提示符的大小和颜色
标签:ios
原文地址:http://smengxiang.blog.51cto.com/11204872/1860694