Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

leed76

macrumors newbie
Original poster
Jul 30, 2008
3
0
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];
}

Thanks!
:confused:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.