后台返回参”newCustomers“数转换成”Customers“
1. 在.h页
@property (nonatomic,strong) NSString *newCustomers;
+ (NSDictionary*)replacedKeyFromPropertyName;
2.在.m页
+ (NSDictionary*)replacedKeyFromPropertyName{
return @{@"Customers":@"newCustomers"};
}
后台返回参”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
网友评论