iOS中的路径和URL有什么区别? [英] What's the difference between path and URL in iOS?

查看:192
本文介绍了iOS中的路径和URL有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在像NSFileManager这样的类中,实际上每个方法都有2个版本。一个用于路径,一个用于URL。有什么不同?将URL转换为路径的最佳做法是什么。

In a class such as NSFileManager there are 2 versions of practically every method. One for paths and one for URLs. What's the difference? And what's the best practice for converting a URL to a path.

推荐答案

URL包括正在使用的协议(http:// etc等) )。路径至少不需要或不需要。

URL includes the protocol being used (http:// etc). Path doesn't or doesn't need at least.

这篇关于iOS中的路径和URL有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆