0
有沒有辦法檢測相機何時完成拍照?UIImagePickerController快門檢測
目前我使用下面的方法:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
[picker dismissViewControllerAnimated:YES completion:nil];
NSLog(@"END");
_showAlert = NO;
_alertIsShowing = NO;
if (picker.sourceType == UIImagePickerControllerSourceTypeCamera) {
UIImageWriteToSavedPhotosAlbum([info objectForKey:@"UIImagePickerControllerOriginalImage"], nil, nil, nil);
_endAlerts = YES;
}
_imageView.image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
_saveBtn.hidden = NO;
}
用戶已經點擊了「使用照片」按鈕後觸發。我想要在圖像選取器視圖中捕獲圖像後立即觸發的東西。
由於提前, bnjmn.myers