I use custom cells in storyboard with height set to 57.
While searching in tableView,UISearchDisplayController
returns my custom cell but the height is wrong.
Code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellReuseIdentifier = @"Cell";
CommemorativeItemCell *cell =[self.tableView dequeueReusableCellWithIdentifier:CellReuseIdentifier];
KmCell *kmCell=nil;
if(tableView==self.searchDisplayController.searchResultsTableView)
{
kmCell=[self.filteredResult objectAtIndex:[indexPath row]];
}
else
{
kmCell=[self.arr objectAtIndex:[indexPath row]];
}
// bla bla filling up and drawing labels...
return cell;
}
How to make the cells UISearchDisplayController returns to be of the same height? Thank you in advance.