Feeding parsed data to RKMapperOperation throws NSUnknownKeyException

后端 未结 1 1833
长发绾君心
长发绾君心 2021-01-22 14:59

See my other question for background: Will RestKit's dynamic mapping solve this complex JSON mapping?

Due to the way the server structures the json data that I need

相关标签:
1条回答
  • 2021-01-22 15:30

    The mapper operation does not itself know how to create the instances of the class that you are mapping to. The entity mapping is the correct one to use but you need to teach the mapper operation how to instantiate the Foo objects. To do that you need to create a RKManagedObjectMappingOperationDataSource and set it as the mappingOperationDataSource.

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