I've successfully removed the label by never having an empty result set.
If there are no results because they're being fetched from the server, reset your data source to a single row, and have it display a blank table view cell.
Additionally, use logic to refeuse to select the "dummy" cell:
It's not directly accessible, so you'll have to do it the old fashioned way and manually sift through the subviews of your searchDisplayController.searchResultsTableView. Here's one example:
I wouldn't recommend this since you're relying on internal behavior of the searchResultsTableView which is more than likely going to change at some point, breaking your app. Opening a bug/feature request with Apple would be a good way to go here.
I've successfully removed the label by never having an empty result set.
If there are no results because they're being fetched from the server, reset your data source to a single row, and have it display a blank table view cell.
Additionally, use logic to refeuse to select the "dummy" cell:
I've also found it necessary to add "dummy" cell logic into the
willSelect
delegate method:It's not directly accessible, so you'll have to do it the old fashioned way and manually sift through the subviews of your
searchDisplayController.searchResultsTableView
. Here's one example:I wouldn't recommend this since you're relying on internal behavior of the
searchResultsTableView
which is more than likely going to change at some point, breaking your app. Opening a bug/feature request with Apple would be a good way to go here.