Show UISearchDisplayTableView when search string is empty [duplicate]
问题 This question already has answers here : UISearchDisplayController - how to preload searchResultTableView (8 answers) Closed 4 years ago . This is extremely frustrating: I'm trying to display unfiltered results in a UISearchDisplayController even if the search string is empty. Adding debug code to numberOfSectionsInTableView: and numberOfRowsInSection: shows that when my search string is empty, non-zero integers are being returned, but cellForRowAtIndexPath: is never called! The tableview