将图片保留到图片库中

将图片保存到图片库中

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
	UITouch *touch = [touches anyObject];
	if([touch tapCount] == 1)
	{
		UIImageWriteToSavedPhotosAlbum([imageView image], nil, nil, nil);		
		UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"存储照片成功" 							  
											message:@"您已将照片存储于图片库中,打开照片程序即可查看。"
										    delegate:self 
											cancelButtonTitle:@"OK" 
											otherButtonTitles:nil];
		[alert show];
		[alert release];
	}
}