ios7 - iOS 7 UISearchDisplayController search bar disappears -
i updating app , came across issue. when start typing in search bar search bar disappears , can see table view. can still keep on typing , table view gets updated cannot see search bar. same settings works fine on ios < 7
any idea why happening ?
a little late, i've encounter same problem recently. wanted search bar visible , active through of search, dimmed view, overlaid it, big problem. me thing worked changing frame of dimmed view (apparently it's not same changing frame of searchresultstableview). i've managed following code:
-(void)setcorrectframes { // here set frame avoid overlay cgrect searchdisplayerframe = self.searchdisplaycontroller.searchresultstableview.superview.frame; searchdisplayerframe.origin.y = cgrectgetmaxy(self.searchdisplaycontroller.searchbar.frame); searchdisplayerframe.size.height -= searchdisplayerframe.origin.y; self.searchdisplaycontroller.searchresultstableview.superview.frame = searchdisplayerframe; } -(void)searchdisplaycontrollerwillbeginsearch:(uisearchdisplaycontroller *)controller { [self setcorrectframes]; } -(void)searchdisplaycontrollerdidbeginsearch:(uisearchdisplaycontroller *)controller { [self setcorrectframes]; }
Comments
Post a Comment