Click here to Skip to main content
15,886,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900