调用的过程
以属性 name 来说明
- 接收器中有name的访问器(或者是
getName,isName,_name,_getName)就调用它。 - 没有访问器,则使用接收器的类方法
accessInstanceVariablesDirectly来确定是否(YES / NO)可以返回值 - 如果都不行,就会调用
valueForUndefinedKey: - 返回的值如果不是对象,那么返回被适当的封装的对象。
方法
1 | /** |
以属性 name 来说明
getName, isName, _name, _getName)就调用它。accessInstanceVariablesDirectly 来确定是否(YES / NO)可以返回值valueForUndefinedKey:1 | /** |