简体   繁体   English

堆栈视图中的UILabel

[英]UILabel inside Stack View

I am trying to have a Stack View which contains 3 UILabels . 我试图有一个包含3 UILabelsStack View The problem is that even after setting the compression resistance priorities, I still get warnings. 问题在于,即使在设置了抗压优先级之后,我仍然会收到警告。 Updating the frames doesn't work no matter what I do. 无论我做什么,都无法更新框架。 I guess it has to do with the fact that the labels have intrinsic size? 我想这与标签具有固有大小有关吗? How should I resolve these warnings? 我应该如何解决这些警告? Thanks! 谢谢!

[2]

Please, remove height constraint from stackview. 请从堆栈视图中删除高度限制。 That will solve the problem. 这样可以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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