Last active
December 25, 2015 20:19
-
-
Save mikeabdullah/7034158 to your computer and use it in GitHub Desktop.
-hostURL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A single slash takes us back to the host's root directory, | |
// discarding any components after the path. | |
// Then make absolute so callers don't have to worry about any | |
// side-effects of working with relative URL objects. | |
return [[NSURL URLWithString:@"/" relativeToURL:url] absoluteURL]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment