UIViewController with multiple .xib views

Discussion in 'iOS Programming' started by leed76, Jul 30, 2008.

  1. leed76 macrumors newbie

    Jul 30, 2008
    Hi All:

    Is this even possible? I created my 'View-Based application' in Xcode and that loads a default view/view controller, but can I launch another view (load and show), say when a button is pressed?

    This is what I tried to do:
    -(IBAction) press: (id)sender {
    self.view = [[UIView alloc] initWithNibName:mad:"secondView" bundle:nil];


Share This Page