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
- [NSObject(YYModel) yy_modelToJSONObject]
This is my model class:
@interface YYWebArticle : YYArticle @property (nonatomic, strong) NSString *url; @property (nonatomic) CGRect rect; @property (nonatomic) NSValue *myRect; @end
@implementation YYWebArticle + (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper { NSMutableDictionary *mapper = [[super modelCustomPropertyMapper] mutableCopy]; [mapper addEntriesFromDictionary:@{ @"url":@"url", @"myRect":@"rect" }]; return [mapper copy]; } @end
The - [NSObjee.ct(YYModel) yy_modelToJSONObject] does not work for me:
- [NSObjee.ct(YYModel) yy_modelToJSONObject]
(lldb) po article.url http:www.weibo.cn/adffsffasff (lldb) po article.myRect NSRect: {{100, 100}, {100, 100}} (lldb) po [article yy_modelToJSONObject] { url = "http:www.weibo.cn/adffsffasff"; }
(lldb) po article.url
http:www.weibo.cn/adffsffasff
(lldb) po article.myRect
NSRect: {{100, 100}, {100, 100}}
(lldb) po [article yy_modelToJSONObject]
{
url = "http:www.weibo.cn/adffsffasff";
}
The text was updated successfully, but these errors were encountered:
This bug can be fixed by #268
Sorry, something went wrong.
No branches or pull requests
This is my model class:
The
- [NSObjee.ct(YYModel) yy_modelToJSONObject]
does not work for me:The text was updated successfully, but these errors were encountered: