问题解决地址:
http://stackoverflow.com/questions/26076054/changing-placeholder-text-color-with-swift
1.如下图,加入 _placeholderLabel.textColor

2.使用代码
textFld.attributedPlaceholder =NSAttributedString(string:"Test Data for place holder", attributes:[NSForegroundColorAttributeName:UIColor.blueColor(),NSFontAttributeName:UIFont(name:"Arial", size:10)!])
Swift更改占位符文本颜色教程
本文将指导您如何使用Swift更改UI占位符文本的颜色,并通过代码实例展示实现方法。
658

被折叠的 条评论
为什么被折叠?



