タブビュー ベースの iOS アプリがあり、AdMob GADInterstitial を使用したいと考えています。
if (gadFullReady) { //this check if GAD interstitial received ad
NSLog(@"from GAD");
[gadFull presentFromRootViewController:self];
}
AdMob インタースティシャルが表示されず、次のようなエラー メッセージが表示されました。
Warning: Attempt to present <GADWebAppViewController: 0x9965bd0> on <UITabBarController: 0xb24ab00> while a presentation is in progress!
私の現在のView Controllerは何かを提示しているようなので、それが何であるかを確認して閉じます。
NSLog(@"above view %@", [[self presentedViewController] description]);
UIViewController *currVC = [self presentedViewController];
[currVC dismissViewControllerAnimated:NO completion:^(){
[gadFull presentFromRootViewController:self];
}];
そして、今回はエラーメッセージが表示されました:
above view <UINavigationController: 0x99cbbe0>
Warning: Attempt to dismiss from view controller <UITabBarController: 0x9992890> while a presentation or dismiss is in progress!
誰かが理由を知っていますか?ティア!