标签:io ar os sp for 文件 on bs as
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
NSString *filePath = [[paths objectAtIndex:0] stringByAppendingPathComponent:[NSString stringWithFormat:@"a.jpg"]]; // 保存文件的名称
BOOL result = [UIImagePNGRepresentation(original)writeToFile: filePath atomically:YES];
如果成功result为TRUE,filePath即为访问目录
标签:io ar os sp for 文件 on bs as
原文地址:http://www.cnblogs.com/punkrocker/p/4084268.html