Showing/Hiding windows iPhone Dev

Posted by Cal S on Stack Overflow See other posts from Stack Overflow or by Cal S
Published on 2010-05-17T12:38:25Z Indexed on 2010/05/17 12:51 UTC
Read the original article Hit count: 237

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 :)

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about iphone