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
转换代码如下:
@objcMembers class CustomerQuestionTypeResp: NSObject, Convertible { @objc enum QuestionType: Int, ConvertibleEnum { case singleSelect = 0 case multiSelect = 1 case unsureSelect = 2 case judge = 3 case fillBlank = 4 case input = 5 case material = 6 } var type: QuestionType = .singleSelect required override init() { super.init() } }
QuestionType在不标记@objc 的情况下解析正常,加了@objc标签后估计是偏移量有变化导致解析崩溃,崩溃位置如下:
QuestionType
The text was updated successfully, but these errors were encountered:
我拿你这代码试了下,没发现问题
Sorry, something went wrong.
碰到了同样的报错,解析服务器返回的json数组时碰到了
syncList = responseData.kj.modelArray(LZNoteModel.self)
LZNoteModel的成员变量有一个enum含有@objc 标签,移除了没问题,加上就会出现这个报错
可能跟这个相关
No branches or pull requests
转换代码如下:
QuestionType
在不标记@objc 的情况下解析正常,加了@objc标签后估计是偏移量有变化导致解析崩溃,崩溃位置如下:The text was updated successfully, but these errors were encountered: