I am adding elements (e.g. gesture recognizers, subviews) to cells in cellForRowIndexPath. I don't want to add them if the cell is reused (presumably), so is there a way to easily tell if the cell is new or reused?
The cell prototype is defined in the storyboard.
I do not use a custom subclass for the cell (it seems redundant). I use a cell tag to identify subviews, so I cannot use this.
I could use the pre-iOS 6 approach, but of course, the best way to make something so simple?
I could not find anything on the Internet, so I'm afraid I can embarrass something, but it's hard to find.
source
share