Posted By

iswear_wxp on 03/12/10


Tagged

photo documents


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

adison


把照片库里的图片复制到Documents文件夹


 / Published in: iPhone
 

方法很多, 这是其中一个

  1. directoryPath = [NSString stringWithFormat:@"%@",NSDocumentDirectory()];
  2. NSString *SaveToDirectoryPath =
  3. [directoryPath
  4. stringByAppendingPathComponent: willSaveToDirectory];
  5. [[NSFileManager defaultManager] createFileAtPath:[NSString stringWithFormat:@"%@/%@",SaveToDirectoryPath,DownloadFileName] contents:recvData attributes:nil];

Report this snippet  

You need to login to post a comment.