2014-02-06 78 views
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

回答

0

看來這樣做的唯一方法是創建自己的疊加,這本身被證明是一個痛苦的後端。