Hi, I have a structure like this in my resources folder in xcode, all files are included in the project:
/resources/
----images
--------1.png
--------2.png
----data.xml
----blah.xml
I want to copy this in one whole chunk to the documents folder on the iphone, I can do each one individually by looking for it in the nsbundle.
Code:
NSString *file = [[NSBundle mainBundle] pathForResource:@"1" ofType:@"png"];
BOOL succeeded = [fileManager copyItemAtPath:file toPath:newpath1 error:&err];
I want to copy it as a whole here:
Code:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
any ideas? or is it one at a time for me?