开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜