Suchi
Suchi

Reputation: 10039

How do I delete certain rows from a Core Data SQLite database?

I am an iOS development newbie. I want to delete a few rows from my Core Data SQLite database which have the attribute tagName = "F".

How would I go about doing that?

Upvotes: 0

Views: 494

Answers (1)

Duncan Babbage
Duncan Babbage

Reputation: 20187

If you are using core data, you shouldn't try and delete rows in the database. Rather, you delete the managed objects and save the context, and allow Core Data to do the rest.

Upvotes: 4

Related Questions