我一直在關注iOS平臺的保存箱tutorial。我碰到這行代碼load
一個文件。從Dropbox中加載文件
[[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
?我假設它是我想從Dropbox加載的文件。如果是這樣,我如何指定我想要的文件? 3)如果我從Dropbox中加載一個.sqlite文件,我到底需要將該文件加載到哪裏?
任何幫助將不勝感激!
錯誤我給桌面上的本地路徑,當我從Dropbox下載數據時,我的所有數據從桌面上刪除..我能做些什麼,從桌面恢復我的所有數據。 – 2016-09-16 07:12:27