You can assign Tag
to your UITableView
(s). And then you can access table via its tag.
Something like..
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"Tag: %d",tableView.tag);
switch (tableView.tag) {
case 1:
//stuff for table 1
break;
case 2:
//stuff for table 2
break;
default:
break;
}
}