Wrong UITableViewCell height with UITableViewAutomaticDimension

前端 未结 4 1678
盖世英雄少女心
盖世英雄少女心 2021-02-09 08:05

I make custom cell with 2 multiline labels and pin this labels to all sides. When in -tableView:heightForRowAtIndexPath: for iOS >= 8 I return

4条回答
  •  灰色年华
    2021-02-09 09:03

    Automatic dimension is not working well for some UILabel if that label is aligned with different label by top edges or bottom edges. Just make sure that you do not have such alignments.

提交回复
热议问题