修改UITextfield的Placeholder字体颜色
2015-01-05 17:27
309 查看
UIColor *color = [UIColor
colorWithWhite:1.0
alpha:0.5];
textField.attributedPlaceholder = [[NSAttributedString
alloc]
initWithString:@"在这输入名称"
attributes:@{NSForegroundColorAttributeName: color}];
相关文章推荐
- [iOS]修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- (iOS开发)修改UITextField中placeholder的字体大小,颜色
- iOS修改UITextField的placeholder的字体颜色大小
- iOS开发~修改UITextField的placeholder的字体大小、颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- IOS-OC 修改UITextField的Placeholder字体颜色
- iOS开发修改UITextField的placeholder的颜色字体大小等
- 修改UITextField的placeholder字体颜色并垂直居中
- 修改UItextField输入框placeholder的字体默认颜色和大小,采用KVC方式设置
- 修改UITextField的placeHolder的颜色及字体大小
- 【iOS开发】修改UITextfield的Placeholder字体的颜色
- iOS-修改UITextField的placeholder字体颜色、大小