UITableView didSelectRowAtIndexPath method does not work

I placed the TableView in my xib file in the following way

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ NSLog(@"FIRED THE EVENT"); } 

and it doesn't seem to work when I click on a cell in a table. Is there something I'm missing?

+4
source share
1 answer

Be sure to include the UITableViewDataSource , UITableViewDelegate in your .h file

+2
source

All Articles