gpt4 book ai didi

ios - UISearchBar 更改占位符颜色

转载 作者:IT王子 更新时间:2023-10-29 07:40:12 24 4
gpt4 key购买 nike

有人知道如何更改 UISearchBar 占位符文本的文本颜色吗?

最佳答案

对于 iOS5+ 使用外观代理

[[UILabel appearanceWhenContainedIn:[UISearchBar class], nil] setTextColor:[UIColor redColor]];

关于ios - UISearchBar 更改占位符颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11827585/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com