您的位置:首页 > 其它

修改textFieldplaceholder字体颜色和大小

2016-05-10 22:04 465 查看
修改textFieldplaceholder字体颜色和大小
<code class="bash">textField.placeholder = @<span class="hljs-string" style="color: rgb(0, 136, 0);">"Username!"</span>;
[textField <span class="hljs-built_in" style="color: rgb(102, 0, 102);">set</span>Value:[UIColor redColor] <span class="hljs-keyword" style="color: rgb(0, 0, 136);">for</span>KeyPath:@<span class="hljs-string" style="color: rgb(0, 136, 0);">"_placeholderLabel.textColor"</span>];
[textField <span class="hljs-built_in" style="color: rgb(102, 0, 102);">set</span>Value:[UIFont boldSystemFontOfSize:<span class="hljs-number" style="color: rgb(0, 102, 102);">16</span>] <span class="hljs-keyword" style="color: rgb(0, 0, 136);">for</span>KeyPath:@<span class="hljs-string" style="color: rgb(0, 136, 0);">"_placeholderLabel.font"</span>];</code>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: