Where as I understand you want to select/deselect rows of UITableView and after deletig any row from table you want that it should be removed from DB also.

you can use the method -

  - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
    {
        if(editingStyle==UITableViewCellEditingStyleDelete)
        {

            [code to remove object from db on particular property];     

         }

     }


Now the code to remove particular record/row from DB is -

-(void)deleteUserForId:(NSString *)user_id
{
    NSManagedObject *statusTag=[self getUserForUserid:user_id];
    NSError *error;

    [managedObjectContext deleteObject:statusTag];
    if (![managedObjectContext save:&amp;error]) 
    {

    }

}

-(UserData*)getUserForUserid:(NSString *)user_id
{
    NSFetchRequest *request = [self getBasicRequestForEntityName:@"UserData"];
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"user_id== %@",user_id];


    [request setPredicate:predicate];
    [request setReturnsObjectsAsFaults:NO];

    NSError *error = nil;
    NSArray *results = [managedObjectContext executeFetchRequest:request error:&amp;error];  

    UserData *userInfoObj = nil;
    if (!error &amp;&amp; [results count] &gt; 0)
    {

        userInfoObj = [results objectAtIndex:0];

    }

    return userInfoObj;
}


How do you give cells in a TableView a unique reference
I've always been puzzled by this because my teachers happen to use only the KLMN method, but what is the difference between the KLMN and SPDF methods of finding electronic configuration?
