I am using ios 7.0 and Xcode 5.0. I found that the search display controller uses the same table layout as the delegate view controller. All you have to do is judge if the current table view is the table view of the delegate view manager or the table view of the display controller. But don't forget to add a sentence
tableView.rowHeight = self.tableView.rowHeight;
in the following code snippet:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { // Return the number of rows in the section. if (tableView == self.searchDisplayController.searchResultsTableView) { tableView.rowHeight = self.tableView.rowHeight;//very important! return [self.searchResults count]; } else { ... return ...; } }
if you forget to implement this sentence, then the row of the lookup display lookup table will only be the same as the default row, which makes you think that this is not like the "unsearched" table.
source share