[RKObjectMapping addPropertyMapping:]在ios中崩溃

刚刚开始使用RestKit几天,需要您的审查,我错了..在ios应用程序崩溃:***声明失败 - [RKObjectMapping addPropertyMapping:]

@interface VGShowCheckIn:NSObject

@property(nonatomic,strong)NSNumber * ad_units;

@property(nonatomic,strong)VGShowDetails *程序;

@interface VGShowDetails:NSObject

@属性(复制,非原子)NSString * programTitle;

@属性(复制,非原子)NSString * showId;

=======

RKObjectMapping * checkinMapping = [RKObjectMapping mappingForClass:[VGShowCheckIn class]];

[checkinMapping addAttributeMappingsFromDictionary:@{

                                                  @"ad_units" : @"ad_units",

                                                  @"program" : @"program"

                                                  }];





RKObjectMapping *showMapping = [RKObjectMapping mappingForClass:[VGShowDetails class]];

[showMapping addAttributeMappingsFromDictionary:@{

                                                  @"id"                                         :   @"showId",

                                                  @"title"                      :   @"programTitle",

                                                  }];

和应用程序崩溃在这里:[checkinMapping addPropertyMapping:[RKRelationshipMapping relationshipMappingFromKeyPath:@“program”toKeyPath:@“program”withMapping:showMapping]];

其余的api回应是:

{

data =     {

    "ad_units" = 3;

    program =         {

        id = SH017232340000;


        title = "Man v. Food Nation";
    }
 }

}

可以任何人指导我什么是错的行:[checkinMapping addPropertyMapping:[RKRelationshipMapping relationshipMappingFromKeyPath:@“program”toKeyPath:@“program”withMapping:showMapping]];

崩溃问题:***声明失败 - [RKObjectMapping addPropertyMapping:]

链接地址: http://www.djcxy.com/p/49205.html

上一篇: [RKObjectMapping addPropertyMapping:] crash in ios

下一篇: No response descriptors match the response loaded