Returns an array of strings made by separately appending to the receiver each string in a given array.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
Parameters
paths
An array of
NSString
objects specifying paths to add to the receiver.
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.
Discussion
Note that this method only works with file paths (not, for example, string representations of URLs). See string
for an individual example.