We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
描述bug mj_objectClassInArray 只获取了当前类的配置,如果子类执行后,不会获取父类中的配置
目前我是这么处理的,是否还有其他办法呢?
@interface MyA : NSObject @property (nonatomic, strong) NSArray *list; @end @implementation MyA + (NSDictionary *)mj_objectClassInArray { return @{ @"list" : MyA.class }; } @end @interface MyB : MyA @property (nonatomic, strong) NSArray *bList; @end @implementation MyB + (NSDictionary *)mj_objectClassInArray { NSDictionary *superDict = [super mj_objectClassInArray]; NSMutableDictionary *dict = @{ @"bList" : MyB.class }.mutableCopy; if (superDict) { [dict addEntriesFromDictionary:superDict]; } return dict; } @end
The text was updated successfully, but these errors were encountered:
你应该这样做:
mj_objectClassInArray
Sorry, something went wrong.
No branches or pull requests
描述bug
mj_objectClassInArray 只获取了当前类的配置,如果子类执行后,不会获取父类中的配置
目前我是这么处理的,是否还有其他办法呢?
The text was updated successfully, but these errors were encountered: