uitableviewcell corruption (saw from the bottom) on selection

时间:2017-10-12 09:59:15

标签: ios uitableview

I get this mini-horror sawtooth artifact at the bottom of the cell on UITableViewCell selection

enter image description here

enter image description here

is there any cure? ios version agnostic, happens on 9 and 10 both real devices and simulator

UPD: using first answer here: UITableView separator line disappears when selecting cells in iOS7 switching from blue selection style to style none masks this issue, not sure if feedbackless cell selection style would be acceptable for my employer though.

2 个答案:

答案 0 :(得分:1)

  • First check is height for your cell is correct or not.
  • If using autolayout and height is correct then verify the constraint for this label with proper hugging priority and compression resistance.
  • If using autolayout, also make sure you have set the preferredMaxLayoutWidth for your label
  • Also call layoutIfNeeded for your cell [cell layoutIfNeeded]

答案 1 :(得分:0)

杀死神器的最小足够变化是改变 标签的默认背景从默认为白色 匹配单元格背景。

无论如何,杀死透明度都会解决这个问题。 GPU或GLES驱动程序中的错误或堆栈中的错误。不管。

UPD20171024:closeViewAndMoveMapToPlase:是另一个表中的罪魁祸首。

这看起来像单一症状多重原因。