// // FLEXWindow.m // Flipboard // // Created by Ryan Olson on 4/13/14. // Copyright (c) 2014 Flipboard. All rights reserved. // #import "FLEXWindow.h" @implementation FLEXWindow - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.backgroundColor = [UIColor clearColor]; // Some apps have windows at UIWindowLevelStatusBar + n. // At CGFLOAT_MAX, we should be safe. self.windowLevel = CGFLOAT_MAX; } return self; } - (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event { BOOL pointInside = NO; if ([self.eventDelegate shouldHandleTouchAtPoint:point]) { pointInside = [super pointInside:point withEvent:event]; } return pointInside; } @end