KVC KVO

KVC 提供了以下接口:spa

  1. - (id)valueForKey:(NSString *)key;  接口

  2. - (void)setValue:(id)value forKey:(NSString *)key;  it

  3. - (id)valueForKeyPath:(NSString *)keyPath;  margin

  4. - (void)setValue:(id)value forKeyPath:(NSString *)keyPath;  di

相關文章
相關標籤/搜索