阅读背景:

如何在运行时更改标签约束?

来源:互联网 

I have a table view and a cell inside it. The cell contains three labels: header label and two labels below one to each other. Sometimes, I need to hide those two labels below if they do not contain data and change "Top space to container" of "Header label" to "Center Y to container". And of course revert the constraints back when two labels contain data. Here's a screenshot of simple demo project just for showing the idea:I have a table view and a cell inside it. The c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: