Initializes a URL components object by parsing the URL from an
- iOS 7.0+
- macOS 10.9+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The URL to parse.
Controls whether the URL should be resolved against its base URL before parsing. If
true, and if the
urlparameter contains a relative URL, the original URL is resolved against its base URL before parsing by calling the
absolutemethod. Otherwise, the string portion is used by itself.
Returns the initialized URL components object, or
nil if the URL could not be parsed.