[iphone][memo]画像を保存する処理
( iPhone )カメラやライブラリから写真を読み込んで、デバイスに保存する処理。 だけじゃあれなので、保存後のメッセージを出力する。
- (IBAction)pushButtonSaveImage
{
// 画像をデバイスに保存
UIImageWriteToSavedPhotosAlbum(_imageView.image, self, nil, nil);
// 保存後のメッセージを出力
UIAlertView *alert = [[[UIAlertView alloc]
initWithTitle:@"image saved"
message:@"どどすこ"
delegate:self
cancelButtonTitle:@"いみなし"
otherButtonTitles:nil] autorelease];
[alert show];
}
