Instance Property last Path Component
The last path component. (read-only)
iOS 4.0+ macOS 10.6+ UIKit for Mac 13.0+ Beta tvOS 9.0+ watchOS 2.0+ Declaration @property(readonly, copy) * NSString lastPathComponent;
See Also Accessing the Parts of the URL absolute String
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.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
Learn more about using Apple's beta software