NSData

NSData *data = [NSData dataWithContentsOfURL:url];

NSString *path =[[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:smallpic];

[data writeToFile:path atomically:NO];

posted @ 2013-01-28 11:48  ygm900  阅读(153)  评论(0编辑  收藏  举报