i'm totally new to Objective-C and Cocoa Touch even if i have some basis of programming.
I would like to know how to set up an Action that behave like this.
When i press a button on the Main View, it opens a new window created before, then when i press a button on the 2nd window it switch back to the main one.
I just miss the instruction to switch between windows
ViewController.h
Up Here i've declared the button and the new window.
ViewController.m
Up Here i've declared the function that should load the new window, and connected it with the interface builder to the event TouchUpInside.
What's the code to launch the window NewWindw?
Thanks everyone!
I would like to know how to set up an Action that behave like this.
When i press a button on the Main View, it opens a new window created before, then when i press a button on the 2nd window it switch back to the main one.
I just miss the instruction to switch between windows
ViewController.h
Code:
IBOutlet UIWindow *NewWindw;
IBOutlet UIButton *NewButton;
ViewController.m
Code:
-(IBAction) LaunchWindowsF: (id) sender{
**What here?**
}
What's the code to launch the window NewWindw?
Thanks everyone!
Last edited by a moderator: