美文网首页
iOS MJExtension 特殊key值转换

iOS MJExtension 特殊key值转换

作者: 代码的苦恼 | 来源:发表于2019-07-23 13:45 被阅读0次

后台返回参”newCustomers“数转换成”Customers“

1. 在.h页

@property (nonatomic,strong) NSString *newCustomers;

+ (NSDictionary*)replacedKeyFromPropertyName;

2.在.m页 

+ (NSDictionary*)replacedKeyFromPropertyName{

    return @{@"Customers":@"newCustomers"};

}

相关文章

网友评论

      本文标题:iOS MJExtension 特殊key值转换

      本文链接:https://www.haomeiwen.com/subject/fnrolctx.html