ios - ECSlidingViewController 在设备方向变为横向时隐藏

标签 ios landscape sidebar orientation-changes ecslidingviewcontroller

我正在使用 ECSlidingViewController 在我的应用中显示侧边栏菜单。

Its working fine but when the side bar appears on screen and i changed the orientation of device to landscape, the side bar automatically get hides without giving any kind of notification.

有人可以建议解决方案,以便当我将设备的方向更改为横向时,侧栏会保留在屏幕上并且不会隐藏。 请记住我的应用不支持横向模式。它只是纵向的。

最佳答案

我已经使用本教程在我的项目中成功添加了 ECSSlidingViewController 并且它的工作你应该已经尝试过本教程

http://cocoadocs.org/docsets/ECSlidingViewController/1.3.1/

希望对你有帮助

关于ios - ECSlidingViewController 在设备方向变为横向时隐藏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28083275/

相关文章:

ios - 如何向 UIActivityViewController 添加自定义按钮?

ios - 解析 : Compare PFObject to pointer in class

ios - UITableViewCell 内的可滚动 StackView - ScrollView ContentSize 未更新

java - 如何在 Android 应用程序中阻止或改善横向 View

html - 扩展 float 菜单,因此高度与内容 div 相匹配

c# - 设置 Screen.WorkingArea.Width?

ios - 创建并写入 GL_ALPHA 纹理 (OpenGL ES 2)

java - 当屏幕方向更改为横向时如何向 View 添加滚动?

android - 如何根据手机方向(横向,纵向)绘制 Canvas ?

css - 为什么侧边栏显示在页面底部?