All of my application's pages share the same layout and a set of UI elements, which I've been trying to make a reusable component out of.
I've gone the subclassing road, making an "abstract" subclass of UIViewController to hold the base logic for navigation, and a nib file laying out the UI.
I've spent some time unit-testing the base class, which works as expected, but ran into inheritance related issues when I started actually subclassing it.
I won't go into details, since I'm thinking this was actually a bad idea, and composition is the way to go, but I thought I'd ask before wasting any more time...
What would be the best approach here ?
Cheers