Hello,
i just want to create new folders in the documents folder of my iPhone app
does anybody know how to do that ?
appreciate your help!
Hello,
i just want to create new folders in the documents folder of my iPhone app
does anybody know how to do that ?
appreciate your help!
I do that the following way:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0]; // Get documents folder
NSString *dataPath = [documentsDirectory stringByAppendingPathComponent:@"MyFolder"];
if (![[NSFileManager defaultManager] fileExistsAtPath:dataPath])
[[NSFileManager defaultManager] createDirectoryAtPath:dataPath attributes:nil]; //Create folder