UITextField属性--PlaceHolder颜色自定义
2014-08-14 10:34
302 查看
//设置placeHolder的颜色
注:self就是定义的UITextField。
<span style="font-size:18px;"> UIColor *color = [UIColor whiteColor]; self.attributedPlaceholder = [[NSAttributedStringalloc] initWithString:@"请输入用户名" attributes:@{NSForegroundColorAttributeName: color}];</span>
注:self就是定义的UITextField。
相关文章推荐
- UITextField属性--PlaceHolder颜色自定义
- UITextField属性--PlaceHolder颜色自定义
- iOS 设置UITextField的placeholder属性的颜色
- UITextField的placeholder文字的位置,颜色等的自定义设置
- UITextField的placeholder文字的位置,颜色等的自定义设置
- iOS 修改UITextField的placeholder属性的字体颜色(修改UITextField占位符字体的颜色)
- 自定义UITextField的Placeholder颜色的4种方法(attributedPlaceholder , KVC , Category , runtime)
- UITextField的placeholder文字的位置,颜色等的自定义设置
- IOS UITextField. placeholder属性这个提示符的大小和颜色
- UITextField的placeholder文字的位置,颜色等的自定义设置
- UITextField自定义placeHolder颜色并保持placeHolder居中
- 修改UITextfield的Placeholder字体的颜色
- IOS 开发更改UITextField的Placeholder颜色
- iOS开发设置textField的属性placeholder的字体颜色及大小
- UITextField属性–PlaceHolder颜色自定义
- 自定义UIPageControl的小圆点颜色属性
- [iOS]修改UITextfield的Placeholder字体的颜色
- UITextField设置placeholder颜色
- [IOS]UITextField修改placeholder颜色
- HTML5----CSS输入框背景,颜色,内容提示效果-placeholder属性