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

打印 obj.yy_modelDescription 时,控制台无法显示全部数据 #289

Open
jiutianhuanpei opened this issue Jun 22, 2018 · 2 comments

Comments

@jiutianhuanpei
Copy link

当对象为数组或者属性中有对象数据时,若数据元素较多时,数据打印不完全,用yy_modelDescription可以打印出3~4个完整的元素,而yy_modelToJSONObject也就稍好一点,可以打印6个完整的元素

@kinarobin
Copy link

kinarobin commented Jun 26, 2018

@jiutianhuanpei 有时打印是存在打印不全的问题,这是应该是Xcode的问题吧!你可以换个方式打印试试
#define HLLog(s, ...) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:(s), ##__VA_ARGS__] UTF8String] )

@SYFH
Copy link

SYFH commented May 28, 2019

NSLog 有长度限制, 可以用 printf 代替

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

3 participants