0
我使用下面添加屬性映射如何使用RestKit從json添加屬性映射?
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",
}
]
謝謝,我明白了。 –