For the past 2 weeks I have been reading and learning on how to create an iPhone App using these books: Beginning iOS 6 development, Storyboarding, and Using and Learning Objective C. I have been going through tutorials online and through these books but haven’t been able to find what I am looking for.
I am creating a simple app that is a list of animals which would be searchable, and then when you click on the individual animal it shows information about it (name, picture, weight, and native location). I would like to be able to search via the common name or its species, and the user be able to select the animal and read the information about it. There is no adding new animals or editing the list. Next I would like to be able to also sort by continent. So for example the first Scene would have Animal as one cell and Continents in the other. If they click Animals, it pulls up all the animals and has a UISearchbar to search through all the animals, which they can proceed to click on. If they click continent (Australia), it would populate a searchable list only in that location.
My question is: How would I create a database that links these variables together, and then be able to search via the search bar (plist, core data, sqlite)? What resource should I use for a learning tool or tutorial?
The best choice depends on the amount and complexity of the data. If you only have a few hundred animals with a few attributes per animal then putting all of the data in a plist and loading all of the data into memory is fine.
If you have more data with large notes and other attributes, then you may not be able to load all of the data into memory. Then using SQLite would be a better option.
Core data is another option but it has the biggest learning curve and may be overkill for such simple data. Core data would be a good choice is the data was not read-only, if you had more relationships, and you wanted to sync the user data across devices.