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

iPad ContainerView Height Wrong? #125

Open ghost opened 9 years ago

ghost commented 9 years ago

So I am using the containerView height to set a constraint I have on my TableView bottom margin. This works perfect because I can set it to 0 when no add is visible and then move it up when its visible so the ad does not over lap the tableview. For the iPad the height seems to be off a little. According to Apple it should be 50px for iPhone and 66px for iPad. Am I missing something ?

[[LARSAdController sharedManager] addAdContainerToViewInViewController:self];

if ([[LARSAdController sharedManager] isAdVisible])
{
    self.accountsTableviewBottomConstraint.constant = [[LARSAdController sharedManager] containerView].frame.size.height;
}
else
{
    self.accountsTableviewBottomConstraint.constant = 0;
}

iPad ContainerView Height = LARSAdContainer: 0x7b66bfe0; frame = (0 821; 768 90); autoresize = W+TM; layer = <CALayer: 0x7b666500

iPhone ContainerView Height = LARSAdContainer: 0x7f9422563c70; frame = (0 504; 375 50); autoresize = W+TM; layer = <CALayer: 0x7f9422564040

Apple Reference: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/iAd_Guide/BannerAdvertisements/BannerAdvertisements.html

ad_sizes

simulator screen shot nov 6 2015 1 17 58 pm

simulator screen shot nov 6 2015 1 16 43 pm

ghost commented 8 years ago

Any thoughts on this??