gpt4 book ai didi

objective-c - 如何在iPhone中更改UITextField的颜色?

转载 作者:行者123 更新时间:2023-12-01 19:29:16 26 4
gpt4 key购买 nike

我已经将UITextField放置在UITableView中,并且我的UITableViewCell颜色是Yellow,通常UITextField的背景颜色是白色,我想将UITextField的颜色更改为黄色,或者它应该是透明的。

[txtfld setBackgroundColor:[UIColor clearColor]]; 

但它不起作用-文本字段显示为白色。

最佳答案

[txtfld setBackgroundColor:[UIColor yellowColor]];有效吗?

关于objective-c - 如何在iPhone中更改UITextField的颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1783550/

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