I just wanted to find out if it is possible to create a subfolder in NSDocumentDirectory and write data to this created folder, for example:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *dirPath =[[paths objectAtIndex:0] stringByAppendingPathComponent:@"TestFolder"]; NSString *filePath =[dirPath stringByAppendingPathComponent:@"testimage.jpg"]; [imageData writeToFile:filePath atomically:YES];
Thanks in advance for your support!
objective-c folder nsdocument
Sean
source share