gpt4 book ai didi

ios - 在 Xamarin 中更改 UITextField borderColor

转载 作者:可可西里 更新时间:2023-11-01 03:37:29 25 4
gpt4 key购买 nike

我需要在 Xamarin 中将 UITextField 的 borderColor 更改为白色。

我尝试在 XCode IB 中设置它的 layer.borderColor 和运行时属性,但没有用。

有人可以帮我实现这个目标吗?

最佳答案

这应该让你到达那里:

var textField = new UITextField();

textField.Layer.BorderColor = UIColor.White.CGColor;
textField.Layer.BorderWidth = 1f;

如果这不起作用,请显示更多代码。因为那时我假设您在某处覆盖了样式。

关于ios - 在 Xamarin 中更改 UITextField borderColor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21304071/

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