Check if NSURL is Local File

后端 未结 2 831
广开言路
广开言路 2020-12-18 19:40

This is a pretty simple question- how can I check if a NSURL is linking to a local file?

I know, RTFM, but I checked the documentation and I don\'t seem to see any m

2条回答
  •  温柔的废话
    2020-12-18 20:26

    There is -isFileReferenceURL as of iOS 5 that checks if the url is an file reference. Before 5.0, it did nothing according to the documentation..

    Available in iOS 5.0 and later. (Symbol is present in iOS 4, but performs no operation.)

    I hope this helps the new-comers...

提交回复
热议问题