ios - Permanently Hide UISearchDisplayController -
I am trying to hide the search display controller attached to a UITableView in an IIS 7 table view controller. I do not want to temporarily scroll it up; I want to disable it completely
In my table view controller code (which is set to FWIW grouped style), I found:
self.searchDisplayController .searchbar.hidden = yes ;
This hides the search bar, but unfortunately the result of the empty box sitting on top of my table is:
This will scroll through the screen like a blank screen, like the search bar self.searchDisplayController.searchBar .hidden = NO;
Expected to return the search bar.
I have tried to use suggestions from both questions, look at the table above 44 pixels, apart from working besides this, there is a side effect to hide the pull-to-refresh pointer on top of my table.
I have also tried to set the frame of my search, not the height like the bar:
self.searchDisplayController.searchBar.frame = CGRectMake (0, 0 , Self.tableView.frame.size.width, 0);
But it does not get rid of the empty space on top of my table.
How do I hide a search bar from the UISearchDisplayController and in order to actually create space it will capture the collapse as if it was not in the first place?
I finally dealt with the behavior of the app to relinquish the behavior of this strange behavior and tackle it . I'm not sure this behavior was later fixed in the OS release.
Comments
Post a Comment