I have UIview contains tableview with search display controller
after searching it display the same table my expectation I have a problem with :
TableView numberOfRowsInSection# so I debugged it. it display search view but it doesn't fire the if statement
- (NSInteger)tableView:(UITableView *)theTableView numberOfRowsInSection:(NSInteger)section
{
if (tableView == aSearchDisplayController.searchResultsTableView)
{
return [self.searchResults count];
}
else
{
return [collection count];
}
}