Thursday, 15 May 2014

iphone - UISearchBar cancel button not responding -



iphone - UISearchBar cancel button not responding -

i have implemented searchbar shows cancel button 1 time user has focus in searchbar. have written searchbar.showscancelbutton = yes; in searchbartextdidbeginediting method. in searchbarsearchbuttonclicked, resign keyboard user can view total tableview.

problem: @ point searchbar cancel button not responding. responds 1 time searchbar gets focus again. default property of search bars cancel button or missing in code. want utilize cancel button without giving focus in searchbar again.

this search bar cancel button's default behaviour. if want other functionality, can uncheck cancelbutton property search bar , can utilize uibutton cancel button.

iphone uisearchbar

No comments:

Post a Comment