Possible Duplicate:
Showing a different XIB/NIB in an iOS app
Currently I have a iOS app with one view and one xib. Upon pressing a button, I’d like to display a different view with a different xib. The issue is I just don’t know exactly how to do this. Currently, I am instantiating the controller with:
(The view I’m trying to load is HomeViewController. I’m currently within TipAppViewController)
HomeViewController *homeViewController = [[HomeViewController alloc] initWithNibName:@"HomeViewController" bundle:nil];
I’m unsure where I should go now. I’m not using a Navigation controller currently and would like not to as I don’t want a blue bar at the top of the screen.
Thanks!
You should do it like this