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
使用的HandyJson版本是5.0.2,变量使用dynamic修饰后,didSet仍然不执行。
dynamic var state:Int = 0 { didSet { switch state { case 1: typeTuple = ("开始",0xFF8833) case 2: typeTuple = ("处理",0xFF8833) default: typeTuple = ("",0xFF8833) } } willSet { } }
The text was updated successfully, but these errors were encountered:
解决办法:在变量前面加上@objc就好了!!! @objc var state:Int = 0 { didSet { switch state { case 1: typeTuple = ("开始",0xFF8833) case 2: typeTuple = ("处理",0xFF8833) default: typeTuple = ("",0xFF8833) } }
willSet { } }
Sorry, something went wrong.
No branches or pull requests
使用的HandyJson版本是5.0.2,变量使用dynamic修饰后,didSet仍然不执行。
The text was updated successfully, but these errors were encountered: