PDA

View Full Version : iPad UI design question (nesting UIViews + UIViewControllers)




pickanumber
Jan 9, 2011, 12:03 AM
If I am designing a custom UI for the iPad, is it okay to nest UIViews, where each UIView has its own UIViewController tied to it?

I mean by first creating a set of UIViewControllers + xib files from Xcode templates, then nesting their views by doing:

[firstView addSubview:secondUIViewController.view];

Is this okay? Is this non-ideal? What's the right way to do this so that each piece is still reusable?

Explanations and links to the documentation is welcome.