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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

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