KVC, KVO 實現原理

Key-Value Coding: 鍵值編碼 (KVC) 方法調用:  // 對象屬性 // 類似: Person -> name setValue: forKey: // 對象的屬性或者 屬性的屬性...... 可見它已經包含前者. // 類似: Person -> car -> name setValue: forKeyPath: KVC運用了一個isa-swizzling技術. isa-
相關文章
相關標籤/搜索