Im building an iOS app which is Landscape only. When my app goes into background, the image that iOS shows in the multitasking apps list appears messed up. It is showing the landscape image upside down in portrait mode.
I'm not doing anything specific in applicationWillResignActive and applicationWillEnterForeground.
Here's an image showing the issue.

I've allowed only Landscape mode for my app by setting these in General properties and Info.plist files as shown below:

Info.plist file:

It sure does look like one of the third-party ad libraries is causing the mess-up. The issue does not occur in the ad-free version of the same app. Is there anything I can do to prevent the third party libraries from causing this mess up?
So, I'm using iAd and AdMob along with adapters to support mediation (to support InMobi, MobFox and Millennial Media).
Is there anything I can do to get this fixed?
A workaround is to remove the ad from superview in applicationWillResignActive and re-adding it in applicationDidBecomeActive (preferably making use of NSNotifications).
So removing it would look something like this:
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
[self.adBanner removeFromSuperview];
}
And adding it:
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
[self.view addSubview:self.adBanner];
[self.view addConstraints:@[self.adXConstraint, self.adYConstraint]];
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With