0

I have a view in storyboard with UIView that contains an image:

enter image description here

When I compile the table, I get:

enter image description here

But, in another case in storyboard without image:

enter image description here

I get result:

enter image description here

My UITableView is working with UITableViewAutomaticDimension

The question is:

How to set constrains of my UIImageView to determine its height same as max height of adjacent view?

Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358

1 Answers1

-1

Add two constraints to the UIImageView to constrain it to the Top and Bottom of the UIView

chedabob
  • 5,835
  • 2
  • 24
  • 44