ARS
ARS

Reputation: 147

Reordering causing subview 's backround color to clear

I m having issue of table cells reordering. I have some views with some background color in cell contenview. When we drag cell for reorder its making all view's color to clear color. its a standard behavior as much i understand.

Is there any way to not affect subview color while reordering?

Upvotes: 4

Views: 522

Answers (1)

jszumski
jszumski

Reputation: 7416

The default behavior is to allow the user to see though the cell to best determine where to drop it, so strongly consider that use case before implementing something else.

You could try overriding setHighlighted: or setSelected: on the cell (or any applicable subviews like UILabels) to ignore any changes when the controller is reordering.

Upvotes: 2

Related Questions