I have a problem with creating a button that will grows vertically according to length of the text set as its title. I have seen similar problem but that solution won't work in this case. When I set:
label.numberOfLines = 0
then there is possibility to show multiline text but that doesn't affect button height itself. Has anyone faced that problem and found out nice and generic solution. I would love to avoid hardcoding some values for button's intrinsic size etc.