2011-06-30 35 views

回答

8

在這裏,我承擔部分1和行0不能非常編輯

- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { 
    // Return NO if you do not want the specified item to be editable. 

    if (indexPath.section == 1) { 
     if (indexPath.row == 0) { 
      return NO; 
     } 
    } 

    return YES; 
} 
+1

感謝。這正是我需要的。約翰 – jread1297

+0

歡迎................ –