2012-02-09 2 views

答えて

2

を保存する方法を示していますオールインワン:

UIImageWriteToSavedPhotosAlbum([UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@"your_image_address.com"]]], self, @selector(image:didFinishSavingWithError:contextInfo:), nil); 
+0

こんにちは...大変ありがとうございます。 – Finder

1

このチュートリアルで試してみてください。開発者向けドキュメントのページ - - ギャラリーにダウンロードして保存する方法https://developer.apple.com/library/ios/#documentation/uikit/reference/UIKitFunctionReference/Reference/reference.html

それはこのギャラリーに画像を保存します

UIImageWriteToSavedPhotosAlbum(yourImage, self, @selector(image:didFinishSavingWithError:contextInfo:), nil); 

- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void*)contextInfo 
{ 
    if (error != NULL) 
    { 
     // handle error 
    } 
    else 
    { 
     // handle ok status 
    } 
} 

詳しい情報を、画像をダウンロードし、ローカルメモリにhttp://sugartin.info/2012/01/10/permanently-download-image-and-fetch-locally-images/

+0

こんにちは..ありがとうございます。しかし、私はアプリのメモリに保存したくありません。私はiPhoneの共通機能の "写真"に画像を保存したい。これは可能ですか? – Finder

関連する問題