OK I hate to admit this, but I'm having trouble with a basic concept: Switching views. Someone PLEASE HELP!
I've started off with the basic project using the "View-based application" template that Xcode provides. I've called the project "testing". When it opens in Xcode, I have a testingViewController.xib and a MainWindow.xib.
I've created a button in Interface Builder on the View within testingViewController.xib. I've connected the button to a method called (IBAction)switchViews which I created. The method is currently empty.
I've also created a new View (called Second.xib) and ViewController (called SecondViewController .h and .m). In Interface Builder I attached the xib to the class.
Ok so now for my question. When I press the button on my testingViewController.xib, how do I make it show my Second.xib???
Thanks!
Ethan
I've started off with the basic project using the "View-based application" template that Xcode provides. I've called the project "testing". When it opens in Xcode, I have a testingViewController.xib and a MainWindow.xib.
I've created a button in Interface Builder on the View within testingViewController.xib. I've connected the button to a method called (IBAction)switchViews which I created. The method is currently empty.
I've also created a new View (called Second.xib) and ViewController (called SecondViewController .h and .m). In Interface Builder I attached the xib to the class.
Ok so now for my question. When I press the button on my testingViewController.xib, how do I make it show my Second.xib???
Thanks!
Ethan