Type Method

componentsWithString:

Returns a URL components object by parsing a URL in string form.

Declaration

+ (instancetype)componentsWithString:(NSString *)URLString;

Parameters

URLString

The URL string to parse.

Return Value

Returns the new URL components object, or nil if the URL string could not be parsed.

See Also

Creating URL Components

+ componentsWithURL:resolvingAgainstBaseURL:

Returns a URL components object by parsing the URL from an NSURL object.

- init

Initializes a URL components object with nil for every component.

- initWithString:

Initializes a URL components object by parsing a URL in string form.

- initWithURL:resolvingAgainstBaseURL:

Initializes a URL components object by parsing the URL from an NSURL object.

Beta Software

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