-
Notifications
You must be signed in to change notification settings - Fork 268
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
发现闪退场景 #120
Comments
源码能否完整点,不是很明白 |
谢谢回应。
id obj = [examQuestionDict valueForKey:@"item"];
—— 这里的 obj 是个字符串,但我错把它当做数组了。
NSMutableArray *otherArr = [NSMutableArray arrayWithArray: obj]
—— 使用 obj 初始 其他数组时 就报错闪退了。
其实 根本上说,应该是后台的事,或者 在使用obj时判断一下类型;
JJException不可能应对所有的异常场景是吧。
谢谢你的作品。
… 2022年3月20日 下午3:04,jezz ***@***.***> 写道:
源码能否完整点,不是很明白
—
Reply to this email directly, view it on GitHub <#120 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABMTUG7NI2TSAT3IYH3C56TVA3EW3ANCNFSM5Q6JQXZQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.
|
谢谢回应。 id obj = [examQuestionDict valueForKey:@"item"]; —— 这里的 obj 是个字符串,但我错把它当做数组了。 NSMutableArray *otherArr = [NSMutableArray arrayWithArray: obj] —— 使用 obj 初始 其他数组时 就报错闪退了。 其实 根本上说,应该是后台的事,或者 在使用obj时判断一下类型; JJException不可能应对所有的异常场景是吧。 谢谢你的作品。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
id obj = [examQuestionDict valueForKey:@"item"];
[NSMutableArray arrayWithArray: obj] ———— 闪退。
后来发现 obj 是个字符串。
The text was updated successfully, but these errors were encountered: