textField.placeholder = @"username is in here!";
[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
iOS-修改UITextField的placeholder字体颜色、大小
最新推荐文章于 2021-02-27 10:54:27 发布