Zalando Jul 26, 2016

Proper Use of CellForRowAtIndexPath and WillDisplayCell

Article Summary

Zalando's iOS team challenges a widely-cited performance myth about UITableView that's been misleading developers for years.

Engineer Yunus Eren Guzel investigates whether willDisplayCell actually improves scrolling performance over cellForRowAtIndexPath, a claim popularized in Alexander Orlov's influential article on UITableView optimization. Using layout cycle analysis and logging, he tests whether the timing difference matters.

Key Takeaways

Critical Insight

Data binding location doesn't impact UITableView performance because both methods execute before layout in the same cycle.

The article hints at upcoming changes in iOS 10 that will alter the call order between these methods entirely.

Recent from Zalando

Related Articles