ios - Storing data in NSUserdefaults or coredata? -
i need store dictionary in app it's life time should same life time of data stored in nsuserdefaults.
there few ways achieve thinking of
core data,nskeyedarchiever,nsuserdefaults.i going update information frequently , dictionary not going large data.
my question method best? because storing , retrieving nsuserdefault costly operation.
- core data seems overkill , meant manage larger amounts of data. require maintain entire core data stack persistent store, context, model etc.
- nskeyedarchiver not meant frequent changes , more code nsuserdefaults.
+ nsuserdefaults best scenario describe. simple, transparent , sanctioned api, has fast underlying database associated it, can synched via icloud etc.
Comments
Post a Comment