- textField.placeholder = @"username is in here!";
- [textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
- [textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
textField.placeholder 设置颜色
最新推荐文章于 2019-12-31 16:48:19 发布

本文将介绍如何在iOS和Android应用中使用SwiftUI和Kotlin为文本输入框设置自定义样式,包括颜色、字体和大小等。
7万+

被折叠的 条评论
为什么被折叠?



