How to add data manually in core data entity

前端 未结 4 1543
滥情空心
滥情空心 2021-02-03 13:04

I am working on Core Data for the first time. I have just created an Entity and Attributes for that entity. I want to add some rows as da

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-03 13:30

    The best solution for you and the users of your app is probably to use xml data. You could easily request the XML from a web service and store it in your app and not have to read live from the web all the time. Of course, if your data is massive, this could be a problem but you could also split the data requests into smaller chunks and just store what you fetch for re-use and perhaps an offline mode.

    This tutorial by Björn Sållarp should help a lot. http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/

提交回复
热议问题