Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

继承关系的子类不会继承父类的modelCustomPropertyMapper配置 #294

Open
flypigrmvb opened this issue Sep 10, 2018 · 1 comment

Comments

@flypigrmvb
Copy link

继承关系的子类不会继承父类的modelCustomPropertyMapper配置,是否可以支持呢?

@duduWang20
Copy link

  • (NSDictionary *)modelCustomPropertyMapper {
    Class pclss = [self superclass];
    NSDictionary *pmap = nil;
    if ([pclss respondsToSelector:@selector(modelCustomPropertyMapper)]) {
    pmap = [(id)pclss modelCustomPropertyMapper];
    }
    ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants