以设置成白色为例:
NSString *placeHolder = @"请输入用户名";
_textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeHolder attributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
以设置成白色为例:
NSString *placeHolder = @"请输入用户名";
_textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeHolder attributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];