title: Assign the taken image to image view.image
body: <p>I have image view which is hidden initially. When I click on <code>TakePhotoButton</code> and then it takes images and assign it to the image view. then image view is visible.</p>
  
  <p>When I debug my code, I always get my <code>productImg</code> is nil, even though <code>chosenImage</code> is not nil.</p>
  
  <pre><code>@property (strong, nonatomic) IBOutlet UIImageView *productImg;
  
  - (void)imagePickerController:(UIImagePickerController *)picker
   didFinishPickingMediaWithInfo:(NSDictionary *)info {
  
     UIImage *chosenImage = info[UIImagePickerControllerEditedImage];
     self.productImg.hidden=NO;
     self.productImg.image=chosenImage;
  
     [picker dismissViewControllerAnimated:YES completion:NULL];
  
   }
  </code></pre>