修改UITextField的Placeholder字体的颜色

 textField.attributedPlaceholder = NSAttributedString(string: " *请输入手机号码", attributes: [
            NSAttributedString.Key.foregroundColor: UIColor.white
        ])

你可能感兴趣的:(修改UITextField的Placeholder字体的颜色)