草庐IT

ios - 添加多行/连续行 - 在 Coredata 中填充数据库

如何在coredata和xcode中插入多个/连续的新行?-(void)LoadDB{CoreDataAppDelegate*appdelegate=[[UIApplicationsharedApplication]delegate];context=[appdelegatemanagedObjectContext];NSManagedObject*newPref;newPref=[NSEntityDescriptioninsertNewObjectForEntityForName:NSStringFromClass([Preferenceclass])inManagedObjectC