Creating UITableViewCells programmatically
My UITableViewCells are getting a bit out of hand and I'm trying to
structure them better. The issue is that the cells can have different
layout structures such as number of labels, label widths and position, and
can include different images and buttons. In order to perform the layout
only once, I have create custom NIBs and subclasses for each
configuration, but this has resulted to over 20 different possible layouts
which are hard to maintain and adjust. I'm considering programmatic
creation of the cells and was hoping to understand if this is a common
practice and if there are performance tradeoffs I should be aware of.
What are your general suggestions in solving such an structure?
No comments:
Post a Comment