Skip to content

iPad ContainerView Height Wrong? #125

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions