iphone-如何在Documents 目录下创建子目录

 NSString *path = [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"badge"];
  [[NSFileManager defaultManager] createDirectoryAtPath:path withIntermediateDirectories:YES attributes:nil error:nil];
    NSString *result = [path stringByAppendingPathComponent:file];
    
   

你可能感兴趣的:(document)