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 created custom NIBs 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 (avoiding storyboard prototypes and NIBs altogether) 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?
Three20Stylelib. Performance-wise you'll hardly notice a difference if both options are implement ed well.