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 常用的场景 #69

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

说下KVC 常用的场景 #69

tbfungeek opened this issue Feb 10, 2020 · 0 comments

Comments

@tbfungeek
Copy link
Owner

KVC 通常用于如下场景:

  • 访问某些类的私有属性
  • 字典转模型
  • 快速从模型中抽出一部分属性构成字典返回
  • 使用集合操作快速操作集合,特别是对象集合特别有用
  • 某些只能通过代码设置成员变量值的场景,比如利用Runtime归档解归档的时候
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