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 -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -