If I’m creating a universal iPhone/iPad app, I have two XIBs. One main XIB for each device type.
The iPad version is supposed to get a UISplitViewController as the root controller, the iPhone a UITabBarController.
However, the UITabBarController used on the iPhone is exactly the one I would like to use in the iPad’s UISplitViewController as the master controller.
What is the best/cleanest way to achieve it without duplicating the UITabBarController?
Do I add a third XIB that contains nothing but the UITabBarController and then add it programmatically? Or is there a more elegant way using Interface Builder’s abilities?
Yes, that’s what I’d do. There’s no Interface Builder support for something like this.