Skip to content

Commit

Permalink
A user reported problems with makeKeyAndVisible but not with makeKeyW…
Browse files Browse the repository at this point in the history
…indow
  • Loading branch information
barrettj committed Mar 29, 2013
1 parent 11ee28e commit 3b9e532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BlockAlertsDemo/ToAddToYourProjects/BlockBackground.m
Expand Up @@ -146,7 +146,7 @@ - (void)addToMainWindow:(UIView *)view
self.alpha = 0.0f;
self.hidden = NO;
self.userInteractionEnabled = YES;
[self makeKeyAndVisible];
[self makeKeyWindow];
}

if (self.subviews.count > 0)
Expand Down Expand Up @@ -191,7 +191,7 @@ - (void)removeView:(UIView *)view
if (self.subviews.count == 0)
{
self.hidden = YES;
[_previousKeyWindow makeKeyAndVisible];
[_previousKeyWindow makeKeyWindow];
[_previousKeyWindow release];
_previousKeyWindow = nil;
}
Expand Down

0 comments on commit 3b9e532

Please sign in to comment.