An array containing the path components. (read-only)
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
This property contains an array containing the individual path components of the URL, each unescaped using the
stringByReplacingPercentEscapesUsingEncoding: method. For example, in the URL
file:///directory/directory%202/file, the path components array would be
@[@"/", @"directory", @"directory 2", @"file"].
Accessing the Parts of the URL
The URL string for the receiver as an absolute URL. (read-only)
An absolute URL that refers to the same resource as the receiver. (read-only)
The fragment identifier, conforming to RFC 1808. (read-only)
The host, conforming to RFC 1808. (read-only)
The parameter string conforming to RFC 1808. (read-only)
The password conforming to RFC 1808. (read-only)
The path, conforming to RFC 1808. (read-only)
The port, conforming to RFC 1808.
The query string, conforming to RFC 1808.
The relative path, conforming to RFC 1808. (read-only)
A string representation of the relative portion of the URL. (read-only)
A copy of the URL with any instances of
"." removed from its path. (read-only)
The user name, conforming to RFC 1808.