Hi there,
As usual, I'm new to the iPhone SDK and Objective C, though I currently have a basic application with a MainView.h that is tied into my Window/view via IB. It's declared using the UIView subclass
It's opened in my AppDelegate class with the following lines.
I have several buttons on the view, and would like to use one of those buttons to transition to an alternate view. I can create the .xib file, though get extremely confused when I try to figure out how to link the button press to the pushing of a new view onto the stack.
What are the steps that I need to take to add a secondary view to my project, open that view with a standard button press, and then return to the main view? I don't really care if help is provided via IB or strictly in code. Any help you're able to provide is much appreciated.
Thanks,
- Sionice
As usual, I'm new to the iPhone SDK and Objective C, though I currently have a basic application with a MainView.h that is tied into my Window/view via IB. It's declared using the UIView subclass
Code:
@interface MainView : UIView {
It's opened in my AppDelegate class with the following lines.
Code:
[mainView loadView];
[window makeKeyAndVisible];
I have several buttons on the view, and would like to use one of those buttons to transition to an alternate view. I can create the .xib file, though get extremely confused when I try to figure out how to link the button press to the pushing of a new view onto the stack.
What are the steps that I need to take to add a secondary view to my project, open that view with a standard button press, and then return to the main view? I don't really care if help is provided via IB or strictly in code. Any help you're able to provide is much appreciated.
Thanks,
- Sionice