Reputation: 147
I need use a lot of text in my app. Early I use server to get data. But now I need save text in my program. Much text have some fields: title, short subtitle, and full text. How can I save it the best way, in .plist? Like dictionary
Upvotes: 1
Views: 93
Reputation: 312
This is not the only solution but you can take some reference from it.
For me, I will first pull all the data from the internet with json
web-services
, process them into nsdictionary
or nsarray
and store them into the sqlite by using FMDB.
You can take a look how to store and retrieve data with FMDB. https://github.com/ccgus/fmdb
Then I can keep re-use them by fetching these data from the sqlite.
If you don't need to fetch data from the server, you can just create and insert all the data into sqlite by https://addons.mozilla.org/en-us/firefox/addon/sqlite-manager/
drag and link the sqlite file with your apps, and retrieve the data from it by using FMDB
Upvotes: 1