I have a .plist with one array and in this array i have some NSDictionary in it.
Now I want to change in my Dictionary some Values.
My Idea is to load the whole array, find the value, change it, and write over the whole array.
but it cost a lot of time.
Do you know a better way to change special values.
I have a .plist with one array and in this array i have some
Share
If you’re going to persist data using a .plist, there’s no alternative than to write out the whole file if you make a change.
An alternative for storing large amounts of data that would allow you to update individual records would be to use CoreData – which is effectively a database stored on the device.
Core Data is a lot more complicated than using a plist, but more scalable, and all the other benefits that come with using a database.