I have been successful in creating folder in "Documents" folder in iPhone simulator.
NSError *error;
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0]; // Get documents folder
NSString *dataPath = [documentsDirectory stringByAppendingPathComponent:@"/MyFolder"];
NSLog(@"path is:%@",dataPath);
if (![[NSFileManager defaultManager] fileExistsAtPath:dataPath])
{
[[NSFileManager defaultManager] createDirectoryAtPath:dataPath withIntermediateDirectories:NO attributes:nil error:&error];
}
I can see folder is created in simulator... Now I require to show that folder in my app screen. Means user can see( by clicking on '+' or anything else) that folder is created.
I have also referred iPhone/iPad: Unable to copy folder from NSBundle to NSDocumentDirectory but not as I require.....
Is is possible to show folder, created?? If yes, then how?? Any help would be appreciated....
Thanx in advance :) :)