Показаны сообщения с ярлыком KVO. Показать все сообщения
Показаны сообщения с ярлыком KVO. Показать все сообщения

Registering for Key-Value Observing

In order to receive key-value observing notifications for a property, three things are required:
  • The observed class must be key-value observing compliant for the property that you wish to observe.
  • You must register the observing object with the observed object, using the method addObserver:forKeyPath:options:context:.
  • The observing class must implement observeValueForKeyPath:ofObject:change:context:.