Ios - master data update records

I am currently browsing the documentation and web pages, but I do not see what I am looking for, and I just wanted to confirm if what I am looking for exists :-)

As I understand it, this line of code allows me to add an entry to the SQLite database that I display in my application through Core Data:

NSManagedObject *newSoftware = [NSEntityDescription insertNewObjectForEntityForName:

Now there is a line similar to the one that allows me to update the record I'm working on?

something like that?

NSManagedObject *newSoftware = [NSEntityDescription updateCurrentObjectForEntityForName:

Thanks so much for the tip :-)

+5
source share
2 answers

Here is my previous answer to this. This is pretty detailed to understand what is happening.

How to update an existing object in Core Data?

fumoboy007 KVC, . . , .

:

organising-core-data-for-ios

+8

, NSManagedObject. CoreData, NSManagedObject "". ( NSFetchRequest). : myObject.firstName = "John"; Sqlite, NSManagedContext save. CoreData (, , Xcode), .

+11

All Articles