iOS观察者模式
2019-05-15
KVC与KVO简介
- KVC
KVC(Key-value coding)是一种间接更改对象状态的方式。
官方文档描述:
Key-value coding is a mechanism for accessing an object’s properties indirectly, using strings to identify properties, rather than through invocation of an accessor method or accessing them directly through instance variables. In essence, key-value coding defines the patterns and method signatures that your application’s accessor methods implement.