Closed benzle closed 11 years ago
The only way that touches will be prevented from getting to views behind the container is when an ad banner is presented and visible. The ad banner itself may have a completely clear background, but it will still be accepting touch events.
The ad container itself (without any ad banners "visible") will always pass touches through it to whatever view is behind it since it is a class of LARSAdContainer
. You can see the touch passthrough in LARSAdController.m
, line 26.
I just tested this by placing a UISwitch behind the ad container and giving the ad container a non-transparent background color. Touches were still passed behind the view despite the ad container being visible and userInteractionEnabled
set to YES
.
This relates to pull request #38.
Hi Lars:
After call [[LARSAdController sharedManager] addAdContainerToViewInViewController:self] , containerView with clearColor with be top of the view hierarchy. Therefore, before Ad is available (or visible), that will prohibit touch events for the UIControls under that containerView.