问题
My app is Landscape only, and all is fine until it's sent to the background.
When my app is in the background, and I double-tap Home to bring up the task switcher, my app screenshot is displayed as Portrait. The screenshot was taken as Landscape, but is skewed to display as Portrait.
Note, I am upgrading my app from a previous version to Xcode 6, iOS 7/8. My app doesn't do any background processing.
Any help would be appreciated. I'm assuming I'm missing a setting or call somewhere since I've searched for this issue with no luck. If you find this to be a duplicate then please point me to the appropriate article.
回答1:
If your App is being launched in Landscape Orientation, You can try out launching it in Portrait & See if it happens.
As UIViewController Class Reference States:
At launch time, apps should always set up their interface in a portrait orientation. After the application:didFinishLaunchingWithOptions: method returns, the app uses the view controller rotation mechanism described above to rotate the views to the appropriate orientation prior to showing the window.
Let me know what result you get trying this.
回答2:
My AdBannerView was causing the app screenshot to display in Portrait. To resolve, I removed the banner from its super view on resign active.
来源:https://stackoverflow.com/questions/27461125/background-app-screenshot-showing-wrong-orientation-after-double-tapping-home