diff -r 569fd65261d0 -r 3ec07a7d8456 cocoaTouch/iPad/MainMenuViewController.m --- a/cocoaTouch/iPad/MainMenuViewController.m Mon Mar 29 20:49:36 2010 +0000 +++ b/cocoaTouch/iPad/MainMenuViewController.m Mon Mar 29 23:20:34 2010 +0000 @@ -97,12 +97,7 @@ self.view.alpha = 1; [UIView commitAnimations]; - // this is a silly way to hide the sdl contex that remained active - if (nil == cover) { - cover= [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; - cover.backgroundColor = [UIColor blackColor]; - } - [[SDLUIKitDelegate sharedAppDelegate].uiwindow insertSubview:cover belowSubview:self.view]; + [NSTimer scheduledTimerWithTimeInterval:0.7 target:self selector:@selector(hideBehind) userInfo:nil repeats:NO]; } -(void) disappear { @@ -118,6 +113,15 @@ [self.view removeFromSuperview]; } +// this is a silly way to hide the sdl contex that remained active +-(void) hideBehind { + if (nil == cover) { + cover= [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + cover.backgroundColor = [UIColor blackColor]; + } + [[SDLUIKitDelegate sharedAppDelegate].uiwindow insertSubview:cover belowSubview:self.view]; +} + #pragma mark - -(IBAction) switchViews:(id) sender { UIButton *button = (UIButton *)sender;