Dynamic UITableViewCell content does not expand cell

后端 未结 3 1825
天涯浪人
天涯浪人 2020-12-22 02:56

I have a storyboard with several different types of prototype cells with UILabels containing dynamic data. In my storyboard, the cell looks like this:

The U

3条回答
  •  佛祖请我去吃肉
    2020-12-22 03:21

    In addition to Auto-Layout constraint
    try
    cell.contentView.LayoutIfNeeded statement in cellForRowIndexPath just before returning cell and HeightForRowAtIndexPath method

提交回复
热议问题