ios - searchDisplayController dim view stays after first search -
i using searchdisplaycontroller search functionality. on click of search button, folowing thing:
[mysearchbar becomefirstresponder]; first time, works fine. following in searchdisplaycontrollerdidendsearch (which called on cancel button event)
- (void)searchdisplaycontrollerdidendsearch:(uisearchdisplaycontroller *)controller { [mysearchbar resignfirstresponder]; } now, on cancel button press, search bar hides also. till moment works fine. when second time press search icon, search bar opens , even-though type text , search results, dim view stays there.
i don’t know problem. tried lot not found issue.
please me. stuck @ point.
thanks in advance !!!
i solved !!!
actually making tiny mistake in order hide/show tableview of search display controller following:
-(ibaction)searchbutton_action:(id)sender { // // self.searchdisplaycontroller.searchresultstableview.hidden = false; // // } we should not on our own programatically because searchdisplaycontroller manages tableview.
Comments
Post a Comment