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
当我请求的数据中有null时就会报错,感觉好像 !=nil 这个判断不适用null。。。
The text was updated successfully, but these errors were encountered:
这个问题我也遇到了,这种问题是在Json数据值中有null的情况,转换为Dictionary时,由于Swift中不允许空值nil,所以使用对象NSNull作为代替,这种空值在转换为模型数据时是要进行判断的;我目前使用这种if !(dict[key] is NSNull)进行判断
Sorry, something went wrong.
No branches or pull requests
当我请求的数据中有null时就会报错,感觉好像 !=nil 这个判断不适用null。。。
The text was updated successfully, but these errors were encountered: