Skip to content

Commit

Permalink
Fix YYModel Issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy0570 committed Jul 27, 2021
1 parent 5a635dc commit dca7843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YYKit/Model/NSObject+YYModel.m
Expand Up @@ -1722,7 +1722,7 @@ - (id)modelInitWithCoder:(NSCoder *)aDecoder {
YYEncodingType type = propertyMeta->_type & YYEncodingTypeMask;
switch (type) {
case YYEncodingTypeObject: {
id value = [aDecoder decodeObjectForKey:propertyMeta->_name];
id value = [aDecoder decodeObjectOfClass:propertyMeta->_cls forKey:propertyMeta->_name];
((void (*)(id, SEL, id))(void *) objc_msgSend)((id)self, propertyMeta->_setter, value);
} break;
case YYEncodingTypeSEL: {
Expand Down

0 comments on commit dca7843

Please sign in to comment.