objective-c使用Cordova dropbox pugin如何通过从文件列表中选择特定文件从Dropbox服务器下载文件 [英] objective-c Using Cordova dropbox pugin how to download files from dropbox server by selecting a particular file from a list of files
问题描述
我需要知道如何从文件列表中下载文件,而不在代码中提供特定的文件名。
NSArray * paths = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory,NSUserDomainMask,YES);
NSString * documentsDirectory = [paths objectAtIndex:0]; //获取文档目录
NSString * localPath = [documentsDirectory stringByAppendingPathComponent:@somefile.txt];
NSString * dropBoxFile = @/ somefile.txt;
这是我为单个文件创建的,我知道这个名字。任何人都知道从文件列表中选择文件的解决方案请帮帮我。
I need to know how can i download a file from a list of files,without giving the specific file name in the code.
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex: 0]; // Get documents directory
NSString *localPath = [documentsDirectory stringByAppendingPathComponent:@"somefile.txt"];
NSString *dropBoxFile = @"/somefile.txt";
This is how i created for a single file of which i know the name.Anyone who know the solution to select a file from a list of files please help me.
推荐答案
这篇关于objective-c使用Cordova dropbox pugin如何通过从文件列表中选择特定文件从Dropbox服务器下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!