Creating a JSON Store For iPhone

前端 未结 3 1260
迷失自我
迷失自我 2020-11-27 16:22

We have loads of apps where we fetch data from remote web services as JSON and then use a parser to translate that into a Core-Data model.

For one of our app

3条回答
  •  时光取名叫无心
    2020-11-27 16:44

    I use SBJson to parse JSON to NSDictionaries then save them as .plist files using [dict writeToFile:saveFilePath atomically:YES]. Loading is also just as simple NSMutableDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:saveFilePath]. Its fast, efficient and easy. No need for a database.

提交回复
热议问题