iOS 8 - 应用程序无法正常旋转 [英] iOS 8 - App not rotating appropriately

查看:190
本文介绍了iOS 8 - 应用程序无法正常旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个最初为iOS 7.1开发的应用程序,我现在正在通过Xcode 6.1在iPad上进行测试。在运行7.1或在7.1模拟器的iPad上运行时,应用程序按预期运行。在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 - 应用程序无法正常旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆