有人知道如何更改 UISearchBar 占位符文本的文本颜色吗?
最佳答案
对于 iOS5+
使用外观代理
[[UILabel appearanceWhenContainedIn:[UISearchBar class], nil] setTextColor:[UIColor redColor]];
关于ios - UISearchBar 更改占位符颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11827585/