apploft / ExpandableLabel

A simple UILabel subclass that shows a tappable link if the content doesn't fit the specified number of lines
MIT License
464 stars 126 forks source link

CLOSE added to all cells in a tableView #22

Closed jflaurin closed 7 years ago

jflaurin commented 7 years ago

I use the ExpandableLabel in a tableview, when I press on MORE in one of the CELL then all my cells have the red CLOSE in them, even those that didn't need to expand

michaelkamphausen commented 7 years ago

I can't reproduce this problem. Have a look at the demo project, especially the ViewController and the ExpandableCell class. You need to track the open/close state of your cells in your code, reset it when preparing for reuse and set it on the ExpandableLabel when dequeueing reusable cells.