设置placeholder的字体颜色
2016-05-27 16:09
459 查看
//设置字体颜色
[self.searchTextField setValue:[UIColor colorWithRed:0.50 green:0.50 blue:0.50 alpha:1.0] forKeyPath:@"_placeholderLabel.textColor"];
//设置字体大小
[self.searchTextField setValue:[UIFont systemFontOfSize:15] forKeyPath:@"_placeholderLabel.font"];
[self.searchTextField setValue:[UIColor colorWithRed:0.50 green:0.50 blue:0.50 alpha:1.0] forKeyPath:@"_placeholderLabel.textColor"];
//设置字体大小
[self.searchTextField setValue:[UIFont systemFontOfSize:15] forKeyPath:@"_placeholderLabel.font"];
相关文章推荐
- html的meta总结,html标签中meta属性使用介绍
- 2016年5月27日下午(妙味课堂js基础-3笔记二(事件))
- VMware Tools的安装
- hdu 2438Turn the corner 三分
- StyleCop学习笔记——自定义规则
- 寻找数组中的最大值和最小值
- Apache服务器最新版下载、安装及配置(win版)
- Android自定义控件常用方法总结
- opencv的change log
- 读《茶树冷胁迫的全局基因表达谱》
- Mysql
- 普票系统报错 database disk image is malformed
- jsp两次迭代显示实体中的set集合
- 【iOS】网络操作与AFNetworking
- Android之权限检查(解决未获取用户权限允许)
- sparkStreaming必用的sparkStreamingContext,Dsteam和Receiver
- Foo, Bar是什么意思?
- 【C语言】合并,排序两个链表
- Mac系统 使用github上传项目
- Android调用系统相机拍照并存入相册