如何自定义UISearchBar
清除按钮的行为以显示刷新并停止与iOS Safari地址栏类似的图标和功能。我试图抓住UITextField,但它返回nil
extension UISearchBar {
func textFiled() -> UITextField? {
for view in self.subviews as [UIView] {
if let textField = view as? UITextField {
return textField
}
}
return nil
}
}
答案 0 :(得分:0)
extension=php_openssl.dll