アセット ライブラリに画像を保存する方法を知っている人はいますか? アセットに保存すると、画像は 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];
}