I want to make an iphone app that uses some preexisting data. For example I want to have 20 questions with their relative answer stored somewhere, so that I can use them in the app.
I thought about adding an existing sqlite3 database, but I was wondering how could I then map it with core data? Can I just import the db and set it somewhere? Or is an xml better suited for this task?
If it’s a large dataset, then using sqlite and its associated API is a good way to do it. It will take care of indexing, memory management, etc.
But if the dataset is small enough that you can just suck it all into memory from a file, then just do that; there is no reason to complicate things with Core Data.