Instance Method インスタンスメソッド

didChangeValueForKey:

Informs the observed object that the value of a given property has changed.

Declaration 宣言

- (void)didChangeValueForKey:(NSString *)key;

Parameters パラメータ

key

The name of the property that changed.

Discussion 解説

Use this method when implementing key-value observer compliance manually to inform the observed object that the value at key has just changed. Calls to this method are always paired with a matching call to willChangeValueForKey:.

Special Considerations 特別な注意事項

You rarely need to override this method in subclasses, but if you do, be sure to call super.

See Also 参照

Notifying Observers of Changes