NSManagedObject *eventToDelete = [itemArray objectAtIndex:i];[managedObjectContext deleteObject:eventToDelete];