ios - UISearchbar do something before the keyboard shows up -
i'm having uisearchbar. when click on searchbar keyboard shows up.
i need before keyboard shows up. changes in layout.
so there way before keyboard shows up?
i thought maybe doesn't work:
-(bool)searchbarshouldbeginediting:(uisearchbar *)searchbar { [_searchbar resignfirstresponder]; return yes; }
but keyboard doesn't hide.
any 1 suggestions?
you can ui changes in searchbarshouldbeginediting before returning yes or no. if dont want show keyboard return no.
-(bool)searchbarshouldbeginediting:(uisearchbar *)searchbar { // changes in ui return yes; }
Comments
Post a Comment