Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iPad ContainerView Height Wrong? #125

Open
ghost opened this issue Nov 6, 2015 · 1 comment
Open

iPad ContainerView Height Wrong? #125

ghost opened this issue Nov 6, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 6, 2015

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
Copy link
Author

ghost commented Nov 18, 2015

Any thoughts on this??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants