iphone - 从Dropbox加载文件

标签 iphone ios xcode dropbox dropbox-api

我一直在关注iOS平台的保管箱tutorial。我碰到了这行代码,用load一个文件。

[[self restClient] loadFile:dropboxPath intoPath:localPath]

在此行下面,有一个小的描述框,上面描述了代码,其中指出:
Here, srcPath is the path in the user's Dropbox (you probably got this from a metadata object), and destPath is the location on the local device you want the file to be put after it has been downloaded. To find out when the file download either succeeds or fails implement the following DBRestClientDelegate methods:
1)首先,没有srcPath,也没有destPath。因此,代码或代码说明已过时/不正确。

2)其次,dropboxPath是什么?我假设它是我要从保管箱加载的文件。如果是这样,我如何指定我想要的文件?

3)如果我要从Dropbox加载.sqlite文件,我到底要将文件加载到哪里?

任何帮助将不胜感激!

最佳答案

1)DropboxPath是文件存储在相应Dropbox帐户中的在线路径。

2)源路径将是DropboxPath,目标路径将是您移动设备上的路径,即文档目录。所有文件应下载到文档目录或文档目录的其他目录中。

3)您的.sqlite文件应仅加载到文档目录中。但是项目代码应通过其NSPath使用此文件。

祝您编码愉快!!请享用。!!

关于iphone - 从Dropbox加载文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14993424/

相关文章:

ios - Swift 2 : Call can throw, 但未标记为 'try' 错误未处理

ios - GPUImage 裁剪为 CGRect 并旋转

iphone - 以编程方式检测已安装的应用程序

使用 SDL 2 运行应用程序时 Xcode 5 崩溃

iphone - Xcode升级: PBXContainerItemProxy missing containerPortal key

iphone - 在 UIButton 上添加长按手势和 Click 事件

iphone - 对于大图像,UIImage imageNamed 是否仍然会导致 iOS 4 上的内存问题?

iphone - TableView 在 "reloadData()"之后需要花费大量时间来刷新

iphone - 如何在单个 View 中显示多个视频?

ios - 通过Azure Devops Extension上传到AppStore时如何修复 "Invalid Provisioning Profile"?