Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/100.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Restkit XML映射对象返回null_Ios_Iphone_Objective C_Core Data_Restkit - Fatal编程技术网

Ios Restkit XML映射对象返回null

Ios Restkit XML映射对象返回null,ios,iphone,objective-c,core-data,restkit,Ios,Iphone,Objective C,Core Data,Restkit,使用Restkit并使用XML作为现在的响应,与我的自定义类buy Content_Doc内部的标记值returing null进行映射。映射有什么问题吗?请帮助 XML 任何人都可以回顾一下我不怎么使用XML,但看起来这种关系应该是: ... relationshipMappingFromKeyPath:@"Content_Docs" ... RKObjectMapping* contentMapping = [RKObjectMapping mappingForClass:[Content

使用Restkit并使用XML作为现在的响应,与我的自定义类buy Content_Doc内部的标记值returing null进行映射。映射有什么问题吗?请帮助

XML


任何人都可以回顾一下

我不怎么使用XML,但看起来这种关系应该是:

... relationshipMappingFromKeyPath:@"Content_Docs" ...
RKObjectMapping* contentMapping = [RKObjectMapping mappingForClass:[Content class]];
    [contentMapping addAttributeMappingsFromDictionary:
            @{@"id.text" : @“conID”,@“name.text" : @"name"}];

RKObjectMapping* Content_DocsMapping = [RKObjectMapping mappingForClass:[Content_Docs class]];
    [authorMapping addAttributeMappingsFromDictionary:
            @{@"id.text" : @"subDocId",@"name.text" : @"name"}];

  [contentMapping addPropertyMapping:[RKRelationshipMapping relationshipMappingFromKeyPath:@"Content_Docs.Content_Doc" toKeyPath:@"Content_Doc" withMapping:authorMapping]];
... relationshipMappingFromKeyPath:@"Content_Docs" ...