简体   繁体   中英

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. Thanks!

在此处输入图片说明

好吧,显然问题出在StackView的'distribution'属性...将其更改为'Equal Spacing'而不是'Fill按比例填充'已修复...谢谢!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM