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

array(forKey:)

Returns the array associated with the specified key. 指定されたキーと結びつけられた配列を返します。

Declaration 宣言

func array(forKey defaultName: String) -> [Any]?

Parameters パラメータ

defaultName

A key in the current user‘s defaults database. 現在のユーザのもつdefaultsデータベースの中のあるキー。

Return Value 戻り値

The array associated with the specified key, or nil if the key does not exist or its value is not an array. 指定されたキーと結びつけられた配列、またはnil、もしそのキーが存在しないまたはそれの値がある配列ではないならば。

Discussion 議論

The returned array and its contents are immutable, even if the values you originally set were mutable. 返される配列およびそれの内容は、不変です、たとえあなたがもともと設定した値が可変だったとしても。

See Also 参照

Getting Default Values defaults値を取得する

Related Documentation 関連文書