-
Notifications
You must be signed in to change notification settings - Fork 59
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


