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

stringsByAppendingPaths:

Returns an array of strings made by separately appending to the receiver each string in a given array. 与えられた配列の中の各文字列を個々にレシーバに追加することによって作られる文字列からなる配列を返します。

Declaration 宣言

- (NSArray<NSString *> *)stringsByAppendingPaths:(NSArray<NSString *> *)paths;

Parameters パラメータ

paths

An array of NSString objects specifying paths to add to the receiver. レシーバに加えられることになるパスを指定しているNSStringオブジェクトからなる配列。

Return Value 戻り値

An array of string objects made by separately appending each string in paths to the receiver, preceded if necessary by a path separator. pathsの中の各文字列を別々にレシーバに追加することによって作られる文字列オブジェクトからなる配列、必要に応じてパス分離子を前に置かれます。

Discussion 議論

Note that this method only works with file paths (not, for example, string representations of URLs). See stringByAppendingPathComponent: for an individual example. このメソッドはファイルパスでのみ働くことに注意してください(例えば、URLの文字列表現ではなく)。stringByAppendingPathComponent:を個別の例として見てください。

See Also 参照

Working with Paths パスを扱う