【发布时间】:2014-01-04 09:04:20
【问题描述】:
有人知道如何将图像保存到资源库吗?我知道将其保存到资产中,该图像也将在 iPad 的图库中可用。
我知道如何获取文件:
AFHTTPRequestOperation *requestOperation = [[AFHTTPRequestOperation alloc] initWithRequest:downloadRequest];
[requestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
// How to make the filepath?
operation.outputStream = [NSOutputStream outputStreamToFileAtPath:filePath append:NO];
[operation.responseData writeToFile:filePath atomically:YES];
}
【问题讨论】:
标签: ios alassetslibrary afhttpclient