I can't understand what's the difference between these two ways of calling:
NSURLComponents(URL: url, resolvingAgainstBaseURL: true)
and
NSURLComponents(URL: url, resolvingAgainstBaseURL: false)
And I found the explanation of documentation was hard to understand... Can someone please give me a simple example to show how this api works? (I tried many different combinations of parameters , but what they yielded were same...)