2011-06-30 43 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

欢迎................ –