Capturing image using custom buttons in cameraoverlayview in iphone
Thanks in advance.
I have created a custom toolbar on cameraOverlayView
. One of the toolbar buttons will trigger the takeSnap
method –
-(IBAction)takeSnap
{
NSLog(@"take snap called");开发者_如何学Go
[self.picker takePicture];
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img editingInfo:(NSDictionary *)editingInfo
{
UIImage *image = img;
NSLog(@"image : %@",image);
}
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
{
NSLog(@"Did cancel called");
}
But it is not calling the delegate methods after capturing. The view continues to remain in capture mode. If any one know the reason please help me.
Its very likely that you haven't assigned a delegate properly.
精彩评论