0

in my iphone app i have implimented UISearchDisplayController , while searching inside the didSelectRowAtIndexPath method controller is not going inside the condition

 if (tableView == self.searchDisplayController.searchResultsTableView )

I have added the UISearchDisplayController in the XIB and added UISearchDisplayDelegate,UISearchBarDelegate delegates in xib,,can any one tell me why the controller is not going inside

Ravi
  • 1,759
  • 5
  • 20
  • 38

1 Answers1

0

tableView is not equal to self.searchDisplayController.searchResultsTableView

Either remove the if-statement or set your tableView equal to self.searchDisplayController.searchResultsTablevView

If you have multiple table views, you probably forgot to connect your search results table to the appropriate delegate and datasource.

Dustin
  • 6,783
  • 4
  • 36
  • 53