Contents

absoluteURL(withDataRepresentation:relativeTo:)

Initializes and returns a newly created absolute NSURL using the contents of the given data, relative to a base URL.

Declaration

class func absoluteURL(withDataRepresentation data: Data, relativeTo baseURL: URL?) -> URL

Discussion

If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected.

See Also

Creating a URL object