iPad UI design question (nesting UIViews + UIViewControllers)

Discussion in 'iOS Programming' started by pickanumber, Jan 8, 2011.

  1. pickanumber macrumors newbie

    Jan 8, 2011
    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.

Share This Page