Reputation: 159
I have a UILabel with dynamic height. I am trying to place it within bubble image. How do I resize UIImageView to fit for UILabel?
Upvotes: 1
Views: 86
Reputation: 7876
You need to set 2 constraints:
Additionally, you may want to add the following constraints:
See this documentation to learn how to add contraints programatically.
Upvotes: 2