Don't show UISearchDisplayController results view until search is used

How do I stop showing search results before clicking the search button?

I want the dark modal look to stay too, I don't want to just see the No Results background.

It seems I will have to intercept the textbox change event, but I hope this will be a less hacky way of doing it.

+3


source to share


1 answer


Do one of the filter data in this case:

- (void)searchBar:(UISearchBar *)theSearchBar textDidChange:(NSString *)searchText

      



but reload the table data when the search button is clicked.

0


source







All Articles