From 5c1677a9a722d0509f072bcacccbc99747658b72 Mon Sep 17 00:00:00 2001 From: Javier Heisekce Date: Wed, 8 Apr 2020 10:11:02 -0400 Subject: [PATCH] Borra reimplementacion de cancel button --- ContactsApp/ContactsViewController.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ContactsApp/ContactsViewController.swift b/ContactsApp/ContactsViewController.swift index 2992dbd..a25ce11 100644 --- a/ContactsApp/ContactsViewController.swift +++ b/ContactsApp/ContactsViewController.swift @@ -159,12 +159,6 @@ extension ContactsViewController: UISearchBarDelegate, UISearchDisplayDelegate, self.searchBar.showsCancelButton = true self.searchBar.resignFirstResponder() } - - func searchBarCancelButtonClicked(_ searchBar: UISearchBar) { - self.searchBar.text = "" - self.searchBarTextDidEndEditing(searchBar) - self.searchBar.resignFirstResponder() - } func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) { print(searchText) -- libgit2 0.26.0