[英]Dynamic height table cell in IOS with multiple labels
I'm struggling to make a cell resize it self... I have a stack view pinned Top, Right, Bottom and Left, plus 3 labels with 'lines' options defined as 0, but it only works if the first label is with that property at 0... I've posted a image that describes my problem. 我正在努力使单元格自行调整大小...我有一个固定在顶部,右侧,底部和左侧的堆栈视图,以及3个标签,其中'lines'选项定义为0,但仅当第一个标签带有该属性为0 ...我发布了一张描述我的问题的图像。 Thanks!
谢谢!
好吧,显然问题出在StackView的'distribution'属性...将其更改为'Equal Spacing'而不是'Fill按比例填充'已修复...谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.