Core Data NSFetchRequest setResultType:NSDictionaryResultType not working

前端 未结 1 1606
无人及你
无人及你 2021-01-19 03:18

When setting a NSFetchRequest result type to NSDictinaryResultType, zero objects are returned. If I remove setPropertiesToFetch and setResultType, all the objects are retur

相关标签:
1条回答
  • 2021-01-19 04:09

    The problem was I needed to save the mangedObjectContext after inserting new objects. Once I did that I get the results I was looking for.

    0 讨论(0)
提交回复
热议问题