默认情况下,您可以将BorderStyle
属性设置Bezel
为
myTextField.borderStyle = UITextBorderStyle.Bezel
myTextField.layer.cornerRadius = 5
myTextField.backgroundColor = UIColor.lightGrayColor() //Any Color you want
但是,如果您想在图像中显示效果,则需要自定义 UITextField
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句