iOS修改UITextField的提示语(placeholder)的字体大小和颜色
2015-06-04 09:10
525 查看
textField.placeholder =@"呵呵哒";
[accountNum setValue:[UIColor grayColor]forKeyPath:@"_placeholderLabel.textColor"];[accountNumsetValue:[UIFont boldSystemFontOfSize:14]forKeyPath:@"_placeholderLabel.font"];
[accountNum setValue:[UIColor grayColor]forKeyPath:@"_placeholderLabel.textColor"];[accountNumsetValue:[UIFont boldSystemFontOfSize:14]forKeyPath:@"_placeholderLabel.font"];
相关文章推荐
- Serial Programming Guide for POSIX Operating Systems
- Android中的volley_6_volley的核心RequestQueue类
- go builtin包
- MySQL 更新中文列:1366 Incorrect string value 问题解决
- UGUI 屏幕适配 导致 BoxCollider无效 解决记录
- EasyUI treegrid 生成json格式的方法
- 隐藏ActionBar中的MenuItem
- If you had an array of 1 million values and you had to remove duplicates
- android:background="@color/white" [create file color.xml at res/values/]
- android:background="@color/white" [create file color.xml at res/values/]
- 听说现在UI设计很吃香
- Hadoop HDFS SequenceFile
- iOS中UITextView方法解读
- [LeetCode]N-Queens
- easyui 中datagrid的使用方法
- iOS - UITableViewController - 选中放大cell(草稿)
- android.util.AndroidRuntimeException: requestFeature() must be called before adding content
- iOS项目开发小技巧 (三) --UITableView实现Cell左划删除等自定义功能
- UGUI(四)事件系统的封装
- 苹果开发 笔记(34)UICollectionView