简体   繁体   中英

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

您需要迭代核心数据值并获取要删除的对象(也可以使用谓词获取对象)

[context deleteObject:yourObject];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM