Disable cell reuse for small fixed-size UITableView Disable cell reuse for small fixed-size UITableView ios ios

Disable cell reuse for small fixed-size UITableView


Set nil for reuse identifier in the line

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:nil];

Or just remove the line and add,

UITableViewCell *cell = nil;


Just do not implement the method UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SomeID"]; and none of your cells will be reused. Each time it ask for a cell you create a new one and configure it.


You should pass nil in the method initWithStyle:reuseIdentifier: if you don't want to reuse cells but keep in mind the performance. As long as it is good, you should be ok passing nil.