【发布时间】:2014-01-14 05:04:14
【问题描述】:
- (IBAction)btn_actionTakePicture:(UIButton *)sender {
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentViewController:picker animated:YES completion:NULL];
//I want to know how to save the image into the UIImage *image = savingImage so that I can implement the next 2 lines
UIImage *image = savingImage;
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
}
最后两行代码依赖于获取我捕捉到的图像以保存在变量savingImage 中,那么我该如何实现呢?
【问题讨论】:
标签: ios image file camera photo