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?) -> URLDiscussion
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
init(string:)init(string:encodingInvalidCharacters:)init(string:relativeTo:)fileURL(withPath:isDirectory:)init(fileURLWithPath:isDirectory:)fileURL(withPath:relativeTo:)init(fileURLWithPath:relativeTo:)fileURL(withPath:isDirectory:relativeTo:)init(fileURLWithPath:isDirectory:relativeTo:)fileURL(withPath:)init(fileURLWithPath:)fileURL(withPathComponents:)init(resolvingAliasFileAt:options:)init(resolvingBookmarkData:options:relativeTo:bookmarkDataIsStale:)fileURL(withFileSystemRepresentation:isDirectory:relativeTo:)