Permalink
Browse files

should fix #24

  • Loading branch information...
barrettj committed Apr 12, 2013
1 parent f25138c commit 09d3b71f723791ed96fc070f91956f0bc3581705
Showing with 3 additions and 1 deletion.
  1. +3 −1 BlockAlertsDemo/ToAddToYourProjects/BlockBackground.m
@@ -147,10 +147,12 @@ - (void)addToMainWindow:(UIView *)view
_previousKeyWindow = [[[UIApplication sharedApplication] keyWindow] retain];
self.alpha = 0.0f;
self.hidden = NO;
self.userInteractionEnabled = YES;
[self makeKeyWindow];
}
// if something's been added to this window, then this window should have interaction
self.userInteractionEnabled = YES;
if (self.subviews.count > 0)
{
((UIView*)[self.subviews lastObject]).userInteractionEnabled = NO;

0 comments on commit 09d3b71

Please sign in to comment.