0

I need to save a list created by the user of my app somewhere on his/her iphone. Any idea what technique is best for this ?

BenMorel
  • 30,280
  • 40
  • 163
  • 285
Steve
  • 4,562
  • 8
  • 43
  • 83
  • In order to improve the usefulness of this question (and in order to justify your final choice of the "correct" answer), please give more details. What type of data is in the lists you're saving? How many entries do you need to support? Would simple key-value pairs do the trick, or do you need to persist complex records? – clozach Sep 08 '11 at 14:00

2 Answers2

1

You can use the built-in SQLite database, or even a simple text file. I'd use the sql option, but here's an example of file i/o.

Daniel Pereira
  • 1,767
  • 12
  • 10
1

Save files in the app's document directory. A plist is a good format for such files.

For information on accessing the document directory see this SO answer

Community
  • 1
  • 1
zaph
  • 108,117
  • 19
  • 176
  • 215