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

value(forKey:)

Returns the value for the property identified by a given key.

Declaration 宣言

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

Parameters パラメータ

key

The name of one of the receiver's properties.

Return Value 戻り値

The value for the property identified by key.

Discussion 解説

The search pattern that valueForKey: uses to find the correct value to return is described in Accessor Search Patterns in Key-Value Coding Programming Guide.

See Also 参照

Getting Values 値を取得する

Related Documentation 関連文書