2010-10-25 39 views

回答

0

在選擇處理程序的區分這兩種情況,所以你必須是這樣的:

- (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 
    } 
} 
+0

可以後您的實際代碼?目前還不清楚問題是什麼...... – Vladimir 2010-10-26 07:50:05

+0

但這不是處理單元格選擇的代碼,對吧? selectionStyle僅設置所選單元格突出顯示的方式... – Vladimir 2010-10-26 10:15:16

相關問題