如何在容器视图的标签中制作多行 [英] how to make multiple lines in label of container view

查看:58
本文介绍了如何在容器视图的标签中制作多行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ChallengeViewController 中,我有一个容器视图.在 ContentViewController 中,我有一个显示在一行中的标签. 换行符行数都没有帮助. 这是我的项目的链接: https://github.com/ardulat/auyrmahelp

In a ChallengeViewController I have a Container View. In ContentViewController I have a label which is displayed in one line. Neither Line Break, nor Number of Lines didnt help. Here is the link to my project: https://github.com/ardulat/auyrmahelp

推荐答案

我已经通过更改约束来解决此问题:例如, Trailing Leading 空间,例如使其变大如果您这样做,则可以等于或等于20.并且行数应为0.

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. And number of lines should be 0.

标签约束

这篇关于如何在容器视图的标签中制作多行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆