我写了一个包含 Action 扩展的小应用。 现在我正在努力解决轮换问题。
当我向后旋转时,导航栏现在是 44 点高,就像它应该是横向的一样。
我上传了一个 small project向您展示问题。我认识到 Dropbox Action 扩展有同样的错误。
View Controller 嵌入在 UINavigationController
我假设在路径的某个地方忘了调用 super。 有什么解决方法可以解决这个问题吗?
最佳答案
我遇到了类似的问题。在我的例子中,我有一个 UINavigationController
。我从 UINavigationController
的 subview Controller 中呈现一个 View Controller 。演示后,当我旋转设备时,导航栏的高度搞砸了。
我做了什么
我不是从 UINavigationController
的 subview Controller 中呈现 View Controller ,而是从 UINavigationController
本身呈现它。它解决了问题。
关于ios - UINavigationBar 在 Action Extension 中的旋转高度错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34492233/