简体   繁体   中英

how to make multiple lines in label of container view

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

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.

Constraints for Label

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