1.使用以下代码会崩溃
// if let statusBar = UIApplication.shared.value(forKey: "statusBar") as? UIView{
// statusBar.backgroundColor = UIColor.clear
// }
2.textfiled leftView 设置imageView 会变的很大
解决办法:
使用 uiview 做为leftView 将imageView添加在UIView上
1.使用以下代码会崩溃
// if let statusBar = UIApplication.shared.value(forKey: "statusBar") as? UIView{
// statusBar.backgroundColor = UIColor.clear
// }
2.textfiled leftView 设置imageView 会变的很大
解决办法:
使用 uiview 做为leftView 将imageView添加在UIView上