What is the best way to delete a row of data in Core Data? I can find a lot of answers online with indexPath like this:
NSManagedObjectContext *context=[self managedObjectContext];
[context deleteObject:[self.recordarray objectAtIndex:indexPath.row]];
NSError *error=nil;
if (![context save:&error]) {
NSLog(@"Cant save %@ %@",error,[error localizedDescription]);
}
[self.recordarray removeObjectAtIndex:indexPath.row];
I don't have a Table View , I am saving data for a Custom View. I am very new to Core data, basically I want to do something like that in SQL
Delete Row with FirstColumn(Primary Key) is Equal to "ABC"
Can someone help me and provide a link.