IOS-OC 修改UITextField的Placeholder字体颜色
来源:互联网 发布:c语言贴吧 编辑:程序博客网 时间:2024/05/16 11:57
这个问题在蓝牙项目中遇到的,主要是登录界面的UI设计是需要设置Placeholder字体颜色
就进行了搜索
// 文本框UI
_mobileTF.attributedPlaceholder = [[NSAttributedStringalloc]initWithString:@"请输入手机号"attributes:@{NSForegroundColorAttributeName: [UIColorwhiteColor]}];
_pswTF.attributedPlaceholder = [[NSAttributedStringalloc]initWithString:@"请输入密码"attributes:@{NSForegroundColorAttributeName: [UIColorwhiteColor]}];
// 还有一个是借鉴网友的
[_pswTF setValue:[UIColor whiteColor] forKeyPath:@"_placeholderLabel.textColor"];
0 0
- IOS-OC 修改UITextField的Placeholder字体颜色
- [iOS]修改UITextfield的Placeholder字体的颜色
- 【iOS开发】修改UITextfield的Placeholder字体的颜色
- iOS修改UITextField的placeholder的字体颜色大小
- iOS-修改UITextField的placeholder字体颜色、大小
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体颜色
- UITextField placeholder 字体颜色, 大小的修改
- 修改UITextField placeholder字体颜色
- Mybatis 示例之 SelectKey
- Python 入门神书推荐 —— 500 lines or less
- java 提取公共方法
- <ul> 中 <li>元素的横排居中
- C++引用(左值引用,右值引用)
- IOS-OC 修改UITextField的Placeholder字体颜色
- 简单字符串排序
- ionic2的component中使用angular2中的管道使用(特别是number管道,小坑)
- MUI框架初学——子页面返回键设定
- 绘制微信小程序画布时钟
- J2EE入门
- 数据库系统概论 第1章--绪论--第3节-数据库系统结构
- Spring+MyBatis实现数据库读写分离方案
- 安装vs2015中文版语言提示“The language pack is already installed”