ios - Make an action when searchBar cancel button is fire -



ios - Make an action when searchBar cancel button is fire -

i have tableview searchbar. want reload tableview info when searchbar cancel button tapped.

func searchbarcancelbuttonclicked(searchbar: uisearchbar) { println("cancel button tapped") self.tableview.reloaddata() }

i set :

uisearchbardelegate

and :

override func viewdidload() { self.searchbar.delegate = self }

what weird searchbarsearchbuttonclicked working good.

what did miss ?

ios swift delegates uisearchbar

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -