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

setValue(_:forUndefinedKey:)

Invoked by setValue(_:forKey:) when it finds no property for a given key.

Declaration 宣言

func setValue(_ value: Any?, 
forUndefinedKey key: String)

Parameters パラメータ

value

The value for the key identified by key.

key

A string that is not equal to the name of any of the receiver's properties.

Discussion 解説

Subclasses can override this method to handle the request in some other way. The default implementation raises an NSUndefinedKeyException.

See Also 参照

Setting Values 値を設定する

Related Documentation 関連文書