Returns the range of the specified component in the bytes of a URL.
- iOS 2.0+
- macOS 10.3+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The URL containing
The type of component in
anwhose range you want to obtain. See
CFURLComponentfor possible values.
Specifies the range of
componentincluding the sequences that separate component from the previous and next components. If there is no previous or next components, this function will match the range of the component itself. If
andoes not contain
rangeis set to the location where the component would be inserted.