[英]How to fix UITextField background image not displayed after iOS14?
也许苹果会在未来的更新中解决这个问题。 同时,我找到了swift 4.2的临时解决方案,希望对您有所帮助
func makeTextFieldBorderstyle(){
if #available(iOS 14.0, *) {
self.YourTextField1.borderStyle = .line
self.YourTextField2.borderStyle = .line
self.YourTextField3.borderStyle = .line
}
}
调用这个viewDidLoad
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.