Commit 5c1677a9 by Javier Heisekce

Borra reimplementacion de cancel button

parent 8abc574c
...@@ -159,12 +159,6 @@ extension ContactsViewController: UISearchBarDelegate, UISearchDisplayDelegate, ...@@ -159,12 +159,6 @@ extension ContactsViewController: UISearchBarDelegate, UISearchDisplayDelegate,
self.searchBar.showsCancelButton = true self.searchBar.showsCancelButton = true
self.searchBar.resignFirstResponder() self.searchBar.resignFirstResponder()
} }
func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
self.searchBar.text = ""
self.searchBarTextDidEndEditing(searchBar)
self.searchBar.resignFirstResponder()
}
func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) { func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
print(searchText) print(searchText)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment