0 votes
246 views
asked by (3.1k points)
HI All

  How to get the list of files in Resource folder in Objective-c(iOS)?

1 Answer

0 votes
answered by (8.2k points)

 

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSError * error;
    NSArray * directoryContents = [[[NSArray alloc] init]autorelease];

    directoryContents =  [[NSFileManager defaultManager] 
                          contentsOfDirectoryAtPath:documentsDirectory error:&error];

    NSLog(@"directoryContents ====== %@",directoryContents);

Categories

...