iPad UI design question (nesting UIViews + UIViewControllers)

Discussion in 'iPhone/iPad Programming' started by pickanumber, Jan 8, 2011.

  1. macrumors newbie

    Joined:
    Jan 8, 2011
    #1
    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:

    Code:
    [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