[ios] Top banner originY value fixed on iOS 7.0.4

This commit is contained in:
Igor Khmurets 2014-01-14 12:48:52 +03:00 committed by Alex Zolotarev
parent a4b54f1f35
commit 037493e5ca

View file

@ -615,7 +615,7 @@ const long long LITE_IDL = 431183278L;
self.topBannerAd = [[MPAdView alloc] initWithAdUnitId:adUnitId size:MOPUB_BANNER_SIZE];
self.topBannerAd.delegate = self;
if (!SYSTEM_VERSION_IS_LESS_THAN(@"7"))
self.topBannerAd.minY = [UIApplication sharedApplication].statusBarFrame.size.height;
self.topBannerAd.minY = 20;
self.topBannerAd.midX = self.view.width / 2;
self.topBannerAd.hidden = YES;
[self.topBannerAd startAutomaticallyRefreshingContents];