The placeholder font size or color will be changed by the KVC. The placeholder font size or color will be changed by the KVC. The placeholder font size or color will be changed by the KVC.

[_phoneNum setValue:[UIFont systemFontOfSize:13] forKeyPath:@"_placeholderLabel.font"]; [_phoneNum setValue:[UIColor colorWithRed: 0.51F Green: 0.51F blue: 0.51F Alpha: 1.00 f] forKeyPath: @ "_placeholderLabel. TextColor"]; _phoneNum.font=[UIFont systemFontOfSize:13];Copy the code

When the above several lines of code written together can solve the problem of placeholder bias, if sometimes there is no color setting, the responsibility setting is not effective, pay special attention to the use, if the placeholder requirements are not high responsibility do not need so much trouble.