Returns a string built from the strings in a given array by concatenating them with a path separator between each pair.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
An array of
NSStringobjects representing a file path. To create an absolute path, use a slash mark (“
/”) as the first component. To include a trailing path divider, use an empty string as the last component.
A string built from the strings in
components by concatenating them (in the order they appear in the array) with a path separator between each pair.
This method doesn’t clean up the path created; use
string to resolve empty components, references to the parent directory, and so on.