改变textfield 的placeholder的大小方法: [_nameTextField setValue:[UIFont boldSystemFontOfSize:5] forKeyPath:@"_placeholderLabel.font"];
[_nameTextField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
时间: 2024-10-07 05:45:12
改变textfield 的placeholder的大小方法: [_nameTextField setValue:[UIFont boldSystemFontOfSize:5] forKeyPath:@"_placeholderLabel.font"];
[_nameTextField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];