textfile 属性

Posted zuidap

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了textfile 属性相关的知识,希望对你有一定的参考价值。

//设置textfile的Placeholder的颜色和字体大小

nameText.attributedPlaceholder = NSAttributedString.init(string: "用户名", attributes: [NSForegroundColorAttributeName:  UIColor.white,NSFontAttributeName: UIFont.systemFont(ofSize: 18)])

以上是关于textfile 属性的主要内容,如果未能解决你的问题,请参考以下文章