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
在 Model 中实现 - (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic; 方法,不符合条件返回 NO,容器类属性中依然可以添加此 Model。
- (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic;
NSObject+YYModel.m 911. NSObject *newOne = [cls new]; 912. [newOne yy_modelSetWithDictionary:one]; 913. if (newOne) [objectArr addObject:newOne];
猜测是不是判断条件有误,应该根据912行数据校验方法返回值来判断是否添加模型,还请前辈指点。
The text was updated successfully, but these errors were encountered:
遇到同样的问题
Sorry, something went wrong.
@ibireme 好像应该改成 if ([newOne yy_modelSetWithDictionary:one]) [objectArr addObject:newOne];
No branches or pull requests
在 Model 中实现
- (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic;
方法,不符合条件返回 NO,容器类属性中依然可以添加此 Model。猜测是不是判断条件有误,应该根据912行数据校验方法返回值来判断是否添加模型,还请前辈指点。
The text was updated successfully, but these errors were encountered: