[iOS] GADBannerView prevents scroll-to-top from working

247 views
Skip to first unread message

iwazaru

unread,
Apr 1, 2011, 3:15:10 PM4/1/11
to Google AdMob Ads Developers
When adding using both a GADBannerView and a UITableView (or
UIScrollView) to a view controller, the scroll-to-top gesture stops
working, since a UIScrollView within the UIWebView contained in the
GADBannerView has its scrollsToTop property set to YES.
A possible workaround is to iterate over the GADBannerView's subviews
and reset this property, but I feel this should be done from within
the SDK.

Rajkumar Parameswaran

unread,
Jan 16, 2013, 4:29:14 PM1/16/13
to google-adm...@googlegroups.com, sarumokik...@googlemail.com
Thanks for bringing this up Todd. I've filed a bug with our engineers to see if there are any repercussions to setting ScrollsToTop earlier in the ad flow. 


On Thu, Jan 10, 2013 at 5:04 PM, Todd Huss <th...@twobitlabs.com> wrote:
This is still an issue in the 6.2.1 AdMob SDK. It seems like once an ad loads it doesn't interfere with scroll to top, but while an ad is loading or if an ad fails to load, users can't tap the status bar to scroll back to the top. I worked around it as follows:

for (UIView *subview in [adView subviews]) {
    if ([subview isKindOfClass:[UIWebView class]]) {
        ((UIWebView *)subview).scrollView.scrollsToTop = NO;
    }
}

-Todd
--
Two Bit Labs - Beautifully Crafted Mobile Apps

--
 
 
 

Reply all
Reply to author
Forward
0 new messages