I have added a UIView / UIWindow on top of the screen.
UIWindow *statusBarWindow = [[UIWindow alloc] initWithFrame:[UIApplication sharedApplication].statusBarFrame];
statusBarWindow.windowLevel = UIWindowLevelStatusBar + 1;
statusBarWindow.userInteractionEnabled = NO;
[statusBarWindow makeKeyAndVisible];
But these views should not be touchable and touches on it should trigger the touch on the view below these. Right now the touches don't go through when I add this view and nothing happens.
How can I let a UIView/UIWindow not handle touch events?
I tried .userInteractionEnabled = NO
but that didn't work. Thanks!