Amr Mohamed
Amr Mohamed

Reputation: 2380

How to update attribute value in CoreData after inserting it

I have 2 attributes in CoreData Entity - currentTime and artist.

I want to update the currentTime without updating the artist attribute.

How to do that?

Upvotes: 0

Views: 97

Answers (1)

ArturOlszak
ArturOlszak

Reputation: 2663

  1. Fetch data object which you want to change.
  2. Change currentTime property.
  3. Save context.

This library could be usefull for you:

https://github.com/magicalpanda/MagicalRecord

Upvotes: 1

Related Questions