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

value(forUndefinedKey:)

Invoked by value(forKey:) when it finds no property corresponding to a given key.

Declaration 宣言

func value(forUndefinedKey key: String) -> Any?

Parameters パラメータ

key

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

Discussion 解説

Subclasses can override this method to return an alternate value for undefined keys. The default implementation raises an NSUndefinedKeyException.

See Also 参照

Getting Values 値を取得する

Related Documentation 関連文書