iOS UITextField Placeholder color 占位符 字体 颜色

来源:互联网 发布:淘宝300块的耐克 编辑:程序博客网 时间:2024/06/07 13:33

占位符有富文本:

TextField.attributedPlaceholder = [[NSAttributedString allocinitWithString:@"PlaceHolder Text" attributes:@{NSForegroundColorAttributeName:[UIColor redColor]}];

原文:http://codego.net/78370/

0 0
原创粉丝点击