最佳答案
从界面生成器中将其更改为无边框。 然后在viewcontroller中写入:
textfield.backgroundColor = UIColor.lightGrey
textfield.layer.cornerRadius = 5
关于swift - 如何删除文本框边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53889140/
标签 swift uitextfield
最佳答案
从界面生成器中将其更改为无边框。 然后在viewcontroller中写入:
textfield.backgroundColor = UIColor.lightGrey
textfield.layer.cornerRadius = 5
关于swift - 如何删除文本框边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53889140/