RestKit: How does one post an array of objects?

后端 未结 2 463
轮回少年
轮回少年 2020-12-01 08:39

Question summary:

Consider a class SyncObject that is KVC-compliant with properties such as: time, someValue,

2条回答
  •  爱一瞬间的悲伤
    2020-12-01 08:56

    As a further clarification, I'd like to point out that in mja's answer the key thing is

    [syncEntityMapping mapKeyPath:@"mySyncArray" toRelationship:@"mySyncArray" withMapping:mngObjMapping];
    

    This says "the mySyncArray keypath is an array which contains objects that should be mapped according to mngObjMapping".

提交回复
热议问题