记录一下 swift4.1 textfield 的placeholder 占位符的字体大小和颜色的设置方法
let placeholserAttributes = [NSAttributedStringKey.foregroundColor : UIColor.blue,NSAttributedStringKey.font : UIFont.systemFont(ofSize: 16)]
passwordField.attributedPlaceholder = NSAttributedString(string: "输入密码",attributes: placeholserAttributes)