Remembering state: content offset and table cell reuse.
- by Attacus
I have a tableview with cells that have a scrollview in them. The scrollview is paged, 2 pages to be exact, and is meant to be able to quickly compare two small blocks of text.
I'm trying to find a way to remember what the content offset of the scrollview is. Cell reuse is killing me.
I've tried resetting the offset in prepareForReuse or directly in the cellForRowAtIndexPath, but it seems to give me exactly what you'd expect: Randomly offset tablecells after reuse.
Anyone have any ideas?