textfile 属性

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

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

posted @ 2016-11-02 12:07  zuidap  阅读(310)  评论(0编辑  收藏  举报