ViewController usage issue? Ads and Alerts

Hi!

My app is using alerts and rewarded video ads and they are wrapped from objC.
They are both being showed from the current viewcontroller, for example when i got to show the alerts i use this:

UIViewController * viewController = [UIApplication sharedApplication].keyWindow.rootViewController;

[viewController presentViewController:alert animated:YES completion:nil];

That is all working but i know it cannot be displayed at the same time, the alerts and the video ads when they are using the same viewController. BUT now i have added a banner ad for my game which also runs from the current viewcontroller and the banner is running all the time. Therefore i cannot show rewarded videos or alerts while it is active(RevMob Banner).

How can i show the banner so that it won’t affect the current viewController/so i can show alerts and rewarded video ads?

Have anybody else experience this issue, also when it says “warning: attempt to present which is already presenting”

Can anybody help?

Much appreciated!
Thanks!

There shouldn’t be issues with presenting banners and rewarded video at once. Banner actually just a view.

Yep, you can’t present immediately different view controllers at once. But you shouldn’t met this situation. Normally you wan’t present any alerts while rewarded video is being presented.