0
我需要停下来与提醒用户,如果他/她插入重复记录:的iOS重复记录不允许
Column1 Column2 Column3 (A B C) Allowed (B A L) Allowed (A B C) Not Allowed because its duplicated records
AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
NSManagedObjectContext *context = [appDelegate managedObjectContext];
NSManagedObject *newAdds;
newAdds = [NSEntityDescription insertNewObjectForEntityForName:@"Matches" inManagedObjectContext:context];
[newAdds setValue:club01.text forKey:@"club01"];
[newAdds setValue:club02.text forKey:@"club02"];
[newAdds setValue:matchDateVar forKey:@"matchDate"];
[newAdds setValue:matchTaypVar forKey:@"matchType"];