How to store data within my Application
Hi,
I am developing for the iOS, I want to develop an application that teaches a single subject using a set of data stored on cards.
I have created the card class and instances are held in an NSMutableArray.
I was wondering how best to store this data, I don't want to use archiving or core data services, I want to 'hard code' this data into the application executable, mainly to prevent third parties from producing replacement subjects.
I intend to reuse the application for many other subjects releasing each as a separate app.
At the moment my plans are to fill the cards out in code and place them into the array, as I see it, if I do it this way, when the app is loaded the data will be loaded at the same time, BUT when the init code runs and loads the array I will in effect use double the amount of memory.
I am new to objective-c so I expect theres a proper way to encapsulate data into the app, but I have yet to find it.
any help or pointers on what to go learn about would be much appreciated.
Vis
|