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
Post a Comment