Pulling Information from NSUserDefaults?


hey all, i'm creating application user manipulates information that's stored in dictionary. want able save these nsuserdefaults , retrieve them display in uitableview. code sets dictionary key that's specific date saved (i.e. dictionary1 set key "5-7-2010" in nsuserdefaults).

there way me pull these out , display them uitableview? i'd imagine create nsmutabledictionary hold dates keys , dictionaries values , iterating through them populate table. of course, assumes nsuserdefaults stores objects sort-of dictionary, @ first glance seems true i'm wrong.

@ possible? or nsuserdefaults not meant utilized way? know should use nsmanagedobject , core data this, i'm facing deadline have show @ least save functionality , don't have enough time read on it.

if questions/descriptions unclear please let me know , elaborate further and/or show code. bunch!
 

how propose iterate through keys? "range" known ahead of time? if used nsmutablearray instead?

no, you're correct. it's "sort-of" dictionary.
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments