iOS 8 - 应用程序未正确旋转

iOS 8 - App not rotating appropriately(iOS 8 - 应用程序未正确旋转)
本文介绍了iOS 8 - 应用程序未正确旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个最初为 iOS 7.1 开发的应用程序,我现在正在通过 Xcode 6.1 在 iPad 上进行测试.在运行 7.1 的 iPad 或 7.1 模拟器上运行时,应用程序按预期运行.在 8.1 iPad 或 8.1 模拟器上,似乎没有正确处理旋转.我看到顶部的状态栏在旋转,但应用程序本身并没有改变.我知道这与 iOS 8 中不推荐使用的轮换方法有关.我的问题是......现在是什么???

I have an app originally developed for iOS 7.1 that I am now testing on an iPad through Xcode 6.1. When running on an iPad running 7.1 or in the 7.1 simulator the app functions as expected. On the 8.1 iPad or 8.1 simulator, it appears as though rotation is not handled appropriately. I see the status bar at the top rotate, but the app itself does not change. I understand that this is related to rotation methods being deprecated in iOS 8. My question is... now what???

我还没有找到任何文档来提供关于如何使用新的 iOS 8 机制处理旋转的简明答案.有什么方法可以优雅地处理 iOS 8 中的旋转,就像我在 iOS 7 中处理它们一样?我什至没有看到旧的轮换方法被调用,所以看起来这不仅仅是一个典型的弃用".似乎他们完全消除了对这些方法的调用.

I haven't found any documentation that provides a concise answer for how to handle rotation using the new iOS 8 mechanisms. Is there any way to gracefully handle rotations in iOS 8 the same way I handled them in iOS 7? I don't even see the old rotation methods being called, so it appears as though this is more than a typical "deprecation". It seems as though they've eliminated calls to these methods altogether.

有什么帮助或建议吗?

推荐答案

我遇到了类似的问题,我通过从应用的信息属性列表中删除 UIMainStoryboardFile 和 UIMainStoryboardFile~ipad 键来修复它

I had a similar problem and I fixed it by removing the UIMainStoryboardFile and UIMainStoryboardFile~ipad keys from app's information property list

看看这个讨论https://devforums.apple.com/message/1064397#1064397

这篇关于iOS 8 - 应用程序未正确旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Why local notification is not firing for UNCalendarNotificationTrigger(为什么没有为UNCalendarNotificationTrigger触发本地通知)
iOS VoiceOver functionality changes with Bundle Identifier(IOS画外音功能随捆绑包标识符而变化)
tabbar middle tab out of tabbar corner(选项卡栏中间的选项卡角外)
Pushing UIViewController above UITabBar(将UIView控制器推送到UITabBar上方)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Get an event when UIBarButtonItem menu is displayed(显示UIBarButtonItem菜单时获取事件)