not able to click the search bar tableview cell
===

i ve got a tableview containing array of names.the search bar works perfectly filtering the names in the table view .the problem is the didSelectRowAtindexpath is nt getting fired when clicking the search tableview cell...could u guys help me out.what is the thing that i m missing.should i include any special delegate to involve search tableview cell click.below is the code.

     -(void)search
     {
    nameArray = [[NSMutableArray alloc] init];
    searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, 160, 44)];
    searchDisplayController = [[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self];
    
    searchDisplayController.delegate = self;
    searchDisplayController.searchResultsDataSource = self;
    self.tableViewFriendsList.tableHeaderView = searchBar;
     }
     - (void)searchDisplayController:(UISearchDisplayController *)controller
     willShowSearchResultsTableView:(UITableView *)tableView
     {
     [tableView setRowHeight:70];
     [tableView reloadData];
     }
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
      {       
     
       if (tableView == self.tableViewFriendsList) {
        NSString *friendsID =[[[self.friendsDictionary objectForKey:@"data"] objectAtIndex:indexPath.row] objectForKey:@"id"];
        [[FacebookHelper sharedFacebookHelper] postOnWallWithDelegate:self andID:friendsID];
    }
        
    if (tableView == self.searchDisplayController.searchResultsTableView) {
        NSLog(@"I ve come here");
        NSString *friendsID =[friendsListIdArray objectAtIndex:indexPath.row];
        [[FacebookHelper sharedFacebookHelper] postOnWallWithDelegate:self andID:friendsID];
    }
}