Check if NSURL is Local File

后端 未结 2 839
广开言路
广开言路 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:06

    The -isFileURL will check if your URL uses the file: scheme. It doesn't check whether it's referencing an actual file.

提交回复
热议问题