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

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

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