In my iPhone app I am developing, I have defined two windows:
@interface The_NoteAppDelegate : NSObject <UIApplicationDelegate> {
IBOutlet UIWindow *newNoteWindow;
IBOutlet UIWindow *homeWindow;
}
@property (nonatomic, retain) UIWindow *newNoteWindow;
@property (nonatomic, retain) UIWindow *homeWindow;
and they are linked correctly in IB - but how do I show/hide these windows?
[homeWindow makeKeyAndVisible];
works in appDidFinishLaunching
but when I try [newNoteWindow makeKeyAndVisible];
again to open the other window (on a button touch event) in front of the other, the app freezes.
I know this is a very n00by question but please help me out :)