larsacus / LARSAdController

Lightweight ad mediation for iOS to properly manage multiple ad networks dynamically including iAd and Google ads.
http://theonlylars.com/blog/2013/01/10/stupid-easy-ads-with-larsadcontroller-3-dot-0/
MIT License
269 stars 60 forks source link

A possible Bug #41

Closed benzle closed 11 years ago

benzle commented 11 years ago

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.

larsacus commented 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.