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

stringArray(forKey:)

Returns the array of strings associated with the specified key. この指定されたキーと結びつけられた、文字列それらからなる配列を返します。

Declaration 宣言

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

Parameters パラメータ

defaultName

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

Return Value 戻り値

The array of string objects, or nil if the specified default does not exist, the default does not contain an array, or the array does not contain strings. 文字列オブジェクトからなる配列、またはnil、もし指定されたdefaultが存在しない、defaultが配列を含まない、または配列が文字列を含まないならば。

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 関連文書