Hacker News new | ask | show | jobs
by seivan 4282 days ago
I've started experimenting not making cells but UIViews and just add them on top of cells. I haven't gone with that fully yet but I've planned to try it out.

The downside is you lose out on many of the out of the box stuff, like cell background highlights that you know have to define yourself.

The upside is that you can now reuse the UIView everywhere, including non-subclasses of ScrollView.

1 comments

You should add your view to the cell's contentView instead of directly on the cell, which allows you to keep the default behaviors and also reuse the view.