Keyur Prajapati
Keyur Prajapati

Reputation: 79

How to Delete data in NSManagedObject Context in CoreData

I have make simple coredata Example with Field Entry :

Name :____ & Phone Number :_____ .

I save that Value entry in CoreDat database..

i want to delete the entry for perticular name..

So How can i make to be perform.

Thanks,

Keyur Prajapati

Upvotes: 0

Views: 540

Answers (1)

Sahil Khanna
Sahil Khanna

Reputation: 4382

You need to iterate the core data values and get the object you wish to delete (You may also use predicates to get object)

[context deleteObject:yourObject];

Upvotes: 3

Related Questions