继承关系的子类不会继承父类的modelCustomPropertyMapper配置
flypigrmvb opened this issue · 1 comments
flypigrmvb commented
继承关系的子类不会继承父类的modelCustomPropertyMapper配置,是否可以支持呢?
duduWang20 commented
- (NSDictionary *)modelCustomPropertyMapper {
Class pclss = [self superclass];
NSDictionary *pmap = nil;
if ([pclss respondsToSelector:@selector(modelCustomPropertyMapper)]) {
pmap = [(id)pclss modelCustomPropertyMapper];
}
...