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
UserDefault 包装器是用 setValue,这是 KVC 的方法,用 set(value: forKey:) 比较好?
The text was updated successfully, but these errors were encountered:
不是特别清楚你说的是什么 不过应该区别不大吧
Sorry, something went wrong.
storage.setValue(defaultValue, forKey: key)
这个不是 UserDefaults 的 API
下面这个才是
storage.set(defaultValue, forKey: key)
在某些场景使用 KVC 的会有问题吧
No branches or pull requests
UserDefault 包装器是用 setValue,这是 KVC 的方法,用 set(value: forKey:) 比较好?
The text was updated successfully, but these errors were encountered: