title: IOS image capture and save to UIImageView
body: <p>I am trying to capture an image and save it in the imageview. Below is the code.</p>
  
  <pre><code>- (void)imagePickerController:(UIImagePickerController *)picker
          didFinishPickingImage:(UIImage *)image
                    editingInfo:(NSDictionary *)editingInfo
  {
      NSLog(@"Hello");
      [picker dismissModalViewControllerAnimated:YES];
      [_Image setImage:image];
  }
  
  - (IBAction)Capture:(UIButton *)sender {
          UIImagePickerController *cameraUI = [[UIImagePickerController alloc] init];
          cameraUI.sourceType = UIImagePickerControllerSourceTypeCamera;
          [self presentViewController: cameraUI animated: YES completion:nil];
  }
  </code></pre>
  
  <p>The problem is imagepickercontroller is not called at all!! My .h declaration is </p>
  
  <pre><code>@interface AikyaViewController : UIViewController &lt;UINavigationControllerDelegate, UIImagePickerControllerDelegate&gt;
  </code></pre>
  
  <p>I can get the camera to capture the image, but the image is not saving in my imageview. Infact it is not entering that function itself since its not NSlogging.</p>
  
  <p>Should i have to link anything in the storyboard or any delegates initialisation am i missing?? Plz guide the same.</p>