我在下面使用添加属性映射
RKEntityMapping *entityMapping = [RKEntityMapping mappingForEntityForName:@"Timeline" inManagedObjectStore:managedObjectStore];
[entityMapping addAttributeMappingsFromDictionary:@{@"title": @"title"}];
但是如何添加 attachments.title 映射呢?附件是一个字典数组。我想访问附件中的标题。
[
{
"category": @"tech",
"attachments": [
{
"title": "Mac Home",
"media": [
{
"sizes": {
"small": [
48,
48
]
},
"type": "image"
}
],
"type": "Group",
}
],
"title": "Joined Group",
}
]