ios - Storing data in NSUserdefaults or coredata? -


  1. i need store dictionary in app it's life time should same life time of data stored in nsuserdefaults.

  2. there few ways achieve thinking of core data, nskeyedarchiever , nsuserdefaults.

  3. i going update information frequently , dictionary not going large data.

  4. 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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -