title: Capturing image using custom buttons in cameraoverlayview in iphone
body: <p>Thanks in advance.</p>
  
  <p>I have created a custom toolbar on <code>cameraOverlayView</code>. One of the toolbar buttons will trigger the <code>takeSnap</code> method –</p>
  
  <pre><code>-(IBAction)takeSnap
  {
      NSLog(@"take snap called");
      [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");  
  }
  </code></pre>
  
  <p>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.</p>