Check the cell type in tableView:canEditRowAtIndexPath: , and return false if it's of the type that you can't edit.
So in pseudo code
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
NSInteger row = [indexPath row];
// Check row type
if(rowType==add_new_values_type) // YOU NEED TO WRITE THIS
{
return false;
}
// Return YES - we will be able to delete the row
return YES;
}