KVC笔记
作者:互联网
KVC的全称是Key-Value Coding,俗称“键值编码”,可以通过一个key来访问某个属性
常见的API有
- (void)setValue:(id)value forKeyPath:(NSString *)keyPath;
- (void)setValue:(id)value forKey:(NSString *)key;
- (id)valueForKeyPath:(NSString *)keyPath;
- (id)valueForKey:(NSString *)key;
标签:setValue,KVC,void,笔记,NSString,key,id 来源: https://blog.csdn.net/SuperChaoXu/article/details/122550852