NSURL fileURLWithPath changes behavior in iOS 7

Another interesting issue found today.  NSURL fileURLWithPath has changed behavior in iOS 7.

Before iOS 7 it would return a fileURL with file://localhost prepended to the path passed in (so passing in “/var/test” would return “file://localhost/var/test”)

In iOS 7 it returns file:// (so passing in “/var/test” would return “file:///var/test”)


Leave a Reply

Your email address will not be published. Required fields are marked *