【发布时间】:2013-04-23 16:27:41
【问题描述】:
使用storeWithCallbacks: 方法时,文件将存储在应用程序Documents/SavedFiles 文件夹中。
有没有办法将目标设置为另一个文件夹路径?
以下是我拨打电话的方式。 BoxFile 的 localURL 是只读的。
- (void) downloadFile: (BoxFile *) boxFile
{
[Box registerObserverForDownloadQueue: (id)self];
[boxFile storeWithCallbacks:^(id <BoxOperationCallbacks> on)
{
on.after(^(BoxCallbackResponse response)
{
[Box removeObserverForDownloadQueue: (id)self];
// Proprietory code here and a call to update the folder listing.
});
}];
}
【问题讨论】:
-
可以分享一下盒子文件下载代码吗???
-
添加了我可以添加的代码。
-
你也许可以使用
-setValue:forKey:来伪造它 -
玩了一下。 BoxFile 的键值编码与键不兼容。
标签: ios objective-c box-api