0

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.

Anton Tropashko
  • 5,486
  • 5
  • 41
  • 66

2 Answers2

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]
Amit Battan
  • 2,968
  • 2
  • 32
  • 68
0

The minimal sufficient change to kill the artifact was to change the default background for the label from default to white to match the cell background.

In any event killing transparency fixed this, whatever that was. A bug in GPU or GLES driver or higher up the stack. Whatever.

UPD20171024: closeViewAndMoveMapToPlase: is the culprit in another table.

This looks like a single symptom multiple causes issue.

Anton Tropashko
  • 5,486
  • 5
  • 41
  • 66