Objective c Admob关闭按钮位于iPhone 12安全区域的上方

Objective c Admob关闭按钮位于iPhone 12安全区域的上方,objective-c,Objective C,使用Google Mobile Ads SDK 7.68,用户无法关闭手机,关闭按钮位于安全区域上方(此处不允许用户交互): 至少在iPhone12Pro和iPhone12Pro max上是这样 我尝试的是: GADInterstitial *interstitial = [[GADInterstitial alloc] initWithAdUnitID:@"xxx"]; GADRequest *request = [GADRequest request]; [inters

使用Google Mobile Ads SDK 7.68,用户无法关闭手机,关闭按钮位于安全区域上方(此处不允许用户交互):

至少在iPhone12Pro和iPhone12Pro max上是这样

我尝试的是:

GADInterstitial *interstitial = [[GADInterstitial alloc] initWithAdUnitID:@"xxx"];
GADRequest *request = [GADRequest request];
[interstitial loadRequest:request];

隐藏状态栏允许用户单击关闭按钮。丑陋的不推荐的方法,但它现在正在工作

/// Tells the delegate that an interstitial will be presented.
- (void)interstitialWillPresentScreen:(GADInterstitial *)ad {
    [[UIApplication sharedApplication] setStatusBarHidden:YES];
}

/// Tells the delegate an ad request failed.
- (void)interstitial:(GADInterstitial *)ad didFailToReceiveAdWithError:(GADRequestError *)error {
    [[UIApplication sharedApplication] setStatusBarHidden:NO];
}

/// Tells the delegate the interstitial is to be animated off the screen.
- (void)interstitialWillDismissScreen:(GADInterstitial *)ad {
    [[UIApplication sharedApplication] setStatusBarHidden:NO];
}

/// Tells the delegate that a user click will open another app
/// (such as the App Store), backgrounding the current app.
- (void)interstitialWillLeaveApplication:(GADInterstitial *)ad {
    [[UIApplication sharedApplication] setStatusBarHidden:NO];
}

此处的问题相同,感谢您提供此解决方案。这有点快和脏,但这是我们最好的解决方案,直到谷歌解决这个问题。