I am using search bar example from Search Bar With UITableView. I tried to hide empty table rows using:
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero]; It hides extra rows in normal state of table view with default data. But when I search for something, empty rows show up as well. Why is this happening? How do I fix this? 
