Wrong UITableViewCell height with UITableViewAutomaticDimension

前端 未结 4 1681
盖世英雄少女心
盖世英雄少女心 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 08:43

    The problem is gone when I don't set tableView's estimatedRowHeight for iOS 8 and update preferredMaxLayoutWidth every time when sets the text for multiline labels

提交回复
热议问题