开发者

Storing data locally , either in pList or local folder

开发者 https://www.devze.com 2023-03-24 18:33 出处:网络
I have an restaurant type iOS application that requires constant connection with webservices(ASIHTTPREQUEST and TouchXML).

I have an restaurant type iOS application that requires constant connection with webservices (ASIHTTPREQUEST and TouchXML).

Is there any method such that I can store all the information, e.g. restaurant name, category that the particular restaurant have, food item in each category ?

I've done some research and I believed that pList is one of the good way to approach. Is th开发者_如何学Goere any other good methods to recommend so that the next time when I reopen my application I do not have to go to the web services again. I can just get the data from either pList or some pre-cache files?


Storing information such as products I would recommend either CoreData or NSMutableDictionary. For information such as restaurant name and other personal data, NSUserDefaults would be fine.


For storing such kind of information, SQLite is a good option.

Gives you alot of control on the information.

Just fire a query and get your data...

0

精彩评论

暂无评论...
验证码 换一张
取 消