how to store data in the app

Hi there, I'm still new to the development world.

I want to ask you guys about how I could store data -like audio files or PDFs- inside the app -universal app- with objective-c ?? so the user can view, play, add to favorite or search them. without editting or deleting any of them.


please help me & thanks in advanced .. 🙂

Answered by junkpile in 10723022

For tiny data (strings, dates, numbers etc.) there is NSUserDefaults or the keychain.


For medium sized data (or lots of tiny data) there is Core Data or SQLite (I like SQLite with FMDB) or some other database.


For large data like audio files or PDFs I would think individual files on the file system. Take a look at NSFileManager and related guides - there's lots of documentation on the Apple dev site. (File System Programming Guide)

Accepted Answer

For tiny data (strings, dates, numbers etc.) there is NSUserDefaults or the keychain.


For medium sized data (or lots of tiny data) there is Core Data or SQLite (I like SQLite with FMDB) or some other database.


For large data like audio files or PDFs I would think individual files on the file system. Take a look at NSFileManager and related guides - there's lots of documentation on the Apple dev site. (File System Programming Guide)

Thank you so much

how to store data in the app
 
 
Q