I want to capture image without user knows in iphone. For that i have used custom overlay and called [imagePicker takePicture] but it’s not calling didFinishPickingMediaWithInfo method. Can anyone help me to solve this issue??
Code:
imgPicker = [[UIImagePickerController alloc] init];
imgPicker.delegate = self;
imgPicker.sourceType = UIImagePickerControllerSourceTypeCamera;
imgPicker.cameraDevice=UIImagePickerControllerCameraDeviceFront;
imgPicker.allowsEditing = NO;
imgPicker.showsCameraControls = NO;
imgPicker.wantsFullScreenLayout = NO;
imgPicker.view = cameraOverlayView;
[self presentModalViewController:imgPicker animated:YES];
[imgPicker takePicture];
[imgPicker dismissModalViewControllerAnimated:YES];
Please help me to do it.
1 Answer