I'm having the hardest time getting this to work. I'm trying to copy a folder from my bundle to the documents directory.
the folder I'm trying to find is here:
...app/Resources/12/(a bunch of jpgs)
NSString *myPath = [[[NSBundle mainBundle] resourcePath]stringByAppendingPathComponent:@"12"];
NSLog(@"%@",myPath);/// returns "..../MyApp.app/12"
NSArray *arrayOf12s = [[NSFileManager defaultManager]contentsOfDirectoryAtPath:myPath error:nil];
NSLog(@"%@",arrayOf12s); ////always returns NULL
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…