我有一个带有标签的表格行和一个按钮,它们都应根据显示的文本垂直居中。这意味着行的高度应该基于哪个文本是最大的。见下图:
我尝试过将行换行设置为WordWrap并垂直居中两者,但右侧的UIButton不会相应缩放。
约束:
*label* top 5 to contentview
*label* bottom 5 to contentview
*label* leading 5 to contentview
*label* width 0.75 of contentview
*button* leading 5 to label
*button* trailing 5 to contentview
*button* bottom 5 to contentview
*button* top 5 to contentview