最佳答案
I have an NSURL that looks like this:
file://localhost/Users/myuser/myfile.txt
Is there a standard function to convert it to a local file path looking like this:
/Users/myuser/myfile.txt