I have an iOS app with tab support and I want to use AdMob GADInterstitial.
if (gadFullReady) {
NSLog(@"from GAD");
[gadFull presentFromRootViewController:self];
}
There are no AdMob advertisements and I received an error message, for example:
Warning: Attempt to present <GADWebAppViewController: 0x9965bd0> on <UITabBarController: 0xb24ab00> while a presentation is in progress!
It seems that my current view controller is representing something, so I go, check what it is and let it go.
NSLog(@"above view %@", [[self presentedViewController] description]);
UIViewController *currVC = [self presentedViewController];
[currVC dismissViewControllerAnimated:NO completion:^(){
[gadFull presentFromRootViewController:self];
}];
And this time I got an error message:
above view <UINavigationController: 0x99cbbe0>
Warning: Attempt to dismiss from view controller <UITabBarController: 0x9992890> while a presentation or dismiss is in progress!
Does anyone know why? TIA!
source
share