[英]How to remove “border-radius” from default UITextField?
My question is, how do I remove the " border-radius
" of the textfield
in Swift? 我的问题是,如何删除Swift中文本
textfield
的“ border-radius
”? Is it achievable in xCode or do you need to do a customized textfield
? 是在xCode中可以实现还是需要自定义
textfield
? If so, how do I do that? 如果是这样,我该怎么做? I want the default
textfield
but without it's " border-radius
" if you know what I mean. 如果你知道我的意思,我想要默认的
textfield
但没有它的“ border-radius
”。
Help, please! 请帮助!
UITextField
has an attribute borderStyle
, which can be changed either in interface builder: UITextField
有一个属性borderStyle
,可以在界面构建器中更改:
...or in code: ......或代码:
public var borderStyle: UITextBorderStyle // default is UITextBorderStyleNone. If set to UITextBorderStyleRoundedRect, custom background images are ignored.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.