[英]how to make multiple lines in label of container view
In a ChallengeViewController I have a Container View. 在ChallengeViewController中,我有一个容器视图。 In ContentViewController I have a label which is displayed in one line. 在ContentViewController中,我有一个显示在一行中的标签。 Neither Line Break , nor Number of Lines didnt help. Line Break和Lines都没有帮助。 Here is the link to my project: https://github.com/ardulat/auyrmahelp 这是我的项目的链接: https : //github.com/ardulat/auyrmahelp
I have solved this problem by changing constraints: Trailing and Leading space, for instance make it greater or equal to 20 will be ok if you do so. 我已经通过更改约束解决了这个问题: 尾随和前导空格(例如,使其大于或等于20)就可以了。 And number of lines should be 0. 行数应为0。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.