Skip to content
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

说下KVC与普通的实例变量存取方法的区别 #66

Open
tbfungeek opened this issue Feb 10, 2020 · 0 comments
Open

说下KVC与普通的实例变量存取方法的区别 #66

tbfungeek opened this issue Feb 10, 2020 · 0 comments

Comments

@tbfungeek
Copy link
Owner

  • 而KVC是通过运行时动态访问和修改对象的属性而属性访问器是在编译时确定的。
  • KVC 能够访问私有和只读的实例变量
  • KVC 在字典转模型以及集合操作方面有着十分强大的用途
  • KVC相对不足之处在于相比访问器KVC 效率会低一点。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant