Why Isn't Core Data Fetching My Data?

前端 未结 3 1379
温柔的废话
温柔的废话 2021-01-29 00:03

My data for for an entity\'s attribute is not being fetched upon restart or not being saved before quitting (could be either case). The bottom line is, the data is not showing

3条回答
  •  爱一瞬间的悲伤
    2021-01-29 00:31

    Have you attached your core data file in your Main Bundle? There are two types of Bundle in iPhone app. Main Bundle and Application Bundle. We had a scenario something like yours. We copied the database into our main bundle and write the location of the database into our code. then it worked fine. you can check on this issue also.

提交回复
热议问题