title: Change UIImageView height to image height?
body: <p>I have a UIImageView set up which will display an image determined by what the user selected in the previous table view. </p>
  
  <p>This is how I am currently displaying my images: </p>
  
  <pre><code>if ([_TitleLabel.text isEqualToString:@"Dog"]) {
      UIImage *image = [UIImage imageNamed:@"Dog.png"];
      [imageView setImage:image];
  }
  </code></pre>
  
  <p>Subsequent if statements follow displaying the different images for a different animal.</p>
  
  <p>These images need to be of a different height, and I need to keep their proportionality. The width of all the images is 320 pts. The heights vary from anywhere between 1000pts to 2500pts. All images are located locally in the project. I want the height of the UIImageView to change to the height of image which corresponds to the animal selected by the user. Any ideas?</p>