If I keep a fixed UITableViewCell
with reuseidentifier=nil
as an ivar and return this instance for a specific row, and then reload this row specifically using [tableView reloadRowsAtIndexPaths:withRowAnimation:]
, the row contents disappear (or sometimes flicker). When I scroll away and back, it becomes visible again. If I do [tableView reloadData]
on the other hand, it will not disappear.
- Why does it disappear, when I reload the row ?
- Why doesn't it, when I reload the whole table ?
Here is a sample project: https://github.com/hannesoid/HOTableViewTests
I tested this on iOS 6. I know that manually reusing a UITableViewCell in such a way (with out reuseidentifier & dequeueing) is not typically recommended, but in some quite static scenarios it would simplify things.