Hi all, I have one tableview having two sections. I want to navigate to next view by clicking on only one section. Other section should not go to the next page. can anyone please help me for this?
A:
In selection handler distinguish between those two cases, so you'll have something like:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
if (indexPath.section == 0){
//Some code to go to the next page
}
else{
// Some code not going to another page
}
}
Vladimir
2010-10-25 11:38:26
May be post your actual code? It is not clear what the problem is...
Vladimir
2010-10-26 07:50:05
But that's not the code that handles cell selection, right? selectionStyle only sets the way selected cell is highlighted...
Vladimir
2010-10-26 10:15:16