に保存します。私は次のようにドロップボックスからファイルを保存しようとしていますのDropboxからファイルをダウンロードして、パス
NSString *fileName = [NSString stringWithFormat:@"/newFile.json"];
// Do any additional setup after loading the view, typically from a nib.
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString* path2 = [documentsDirectory stringByAppendingPathComponent:
[NSString stringWithFormat:@"%@", fileName]];
[[self restClient] loadFile:fileName intoPath:path2];
ファイルは、アプリケーション/ APPNAME /サンドボックス/ newFile.json
の下にありますしかし、私はこのエラーが発生します:
2012-05-12 21:05:46.824クイック宿題&ビジネス[934:707] [警告] DropboxSDK:/1/files/sandbox/newFile.jsonにリクエストを作成中にエラーが発生しました - ファイル見つからない
しかしファイルはそこにある!!
ファイルをDropboxに保存しようとしていますか? – jonusx