Last Updated: February 25, 2016
·
406
· andri

About Reusing UITableViewCell

If you know what you're doing, you don't always have to reuse UITableViewCell (which is via

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier 

and

- (id)dequeueReusableCellWithIdentifier:(NSString*)identifier 

methods).

The thing is, if you want to create UI something like this, reusing table cells can cause scrolling performance to be quite slow.
Picture

In term of memory usage, the difference between reusing and not reusing table cells is about 2 - 3 MB, which something I can tolerate in the name of fast scrolling performance.

It's your call :)