label disappear when changing font size to 25 in Swift

前端 未结 3 2168
礼貌的吻别
礼貌的吻别 2020-12-22 01:50

I have a table view and two labels inside it. The second label(description label) has Hundreds of line. when I set font size of description label to 21 it\'s working. Why de

相关标签:
3条回答
  • 2020-12-22 02:18

    @dineshsharma.. Lets try this one and let me know if you are still facing the problem. This is for top label.

    And for lower label set this.

    And in attribute inspector set lines to 0 for both labels. And please implement height for row at index and estimated height tableview delegates.

    0 讨论(0)
  • 2020-12-22 02:36

    Cell height should be dynamic.Have you given cell height dynamically.If you don't know how to give cell height dynamically use scrollview .

    0 讨论(0)
  • 2020-12-22 02:40

    You should check the following steps:

    1. Give the number of lines to 0 if you don't need how many lines can be there. Specific number of lines can be given only when you know the exact number of lines.
    2. Give the size of label to hold the content.
    3. Check for constraints Exceptions.
    0 讨论(0)
提交回复
热议问题