2011-09-12 8 views

答えて

0

関数を呼び出すカメラロールに写真を保存するには:あなたは画像を保存終了したときを通知する場合を除き、

UIImageWriteToSavedPhotosAlbum(myImage, nil, nil, nil); //myImage is a UIImage 

は、過去3つの引数にnilを提供します。この場合、引数とその種類は次のとおりです。この機能の

UIImage *image, 
id  completionTarget, 
SEL  completionSelector, 
void  *contextInfo 

詳細はUIKit Function Referenceです。

+0

thnx dude ...私はこれをチェックしてgonnaが私を助けてくれることを願っています –

1

から写真を取得するのafer iphoneに画像をファイルに保存したり、エクスポートする方法を知っているわけでくださいデバイス上に?デバイス上のアプリケーションのドキュメントディレクトリに保存することができます。

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); 
NSString *documentsDirectory = [paths objectAtIndex:0]; 
NSString *savedImagePath = [documentsDirectory stringByAppendingPathComponent:@"savedImageName.png"]; 

//Assume you have the imageData from the url connection you used to downlod 
[imageData writeToFile:savedImagePath atomically:NO]; 
+0

thnx bt私はiphoneフォトギャラリーに保存したいので、背景として使用することができます。 –

関連する問題