Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 RestKit 中的一对多映射关系感到困惑。我的 json 看起来像这样
object: { sub_objects: [{sub_object}] }
我需要为array核心数据中的关系自动完成项目。数组可能为空,但对象必须离开。
array
这是我的对象映射
[objMapping mapKeyPath:@"sub_objects" toRelationship:@"subObjects" withMapping:subObjMapping];
也许第二个字符串应该@"subObject"没有最后的“s”?
@"subObject"