HomeiOS Developmentios - Determining what inflicting a Core Information fault

ios – Determining what inflicting a Core Information fault


I maintain hitting Core Information faults when updating and deleting objects and Id like to grasp why. The logic primarily fetches the entities, updates just a few fields and saves. No faults are hit. The entities are then consumed for some enterprise logic and when thats executed, the entities are deleted one after the other utilizing the next code:
[context deleteObject:[context objectWithID:entity.objectID]];
carried out inside the context block. Why does the road of code set off fault?

I did find yourself transferring this to make use of NSBatchDeleteRequest the place I handed it an array of object IDs and that removed the faults however simply wish to perceive why the faults obtained triggered within the first place.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments