ios - 如何在 SWRevealViewController 中切换前 View Controller 顶部的后 View Controller 动画?

标签 ios objective-c swrevealviewcontroller

我正在使用 SWRevealViewController 加载前后 View 。截至目前,默认行为是滑动前 View 时,后 View 显示在前 View 下方。这使得后 View 的某些部分隐藏在前 View 后面。

This is how it looks like

如图所示,后 View 中的文本框被截断了。有没有办法可以在前 View 之上显示后 View ?这意味着从左向右滑动屏幕时,前 View 不应向右移动。相反,后 View 应出现在前 View 之上。欢迎任何帮助。

最佳答案

在SWRevealViewController.m文件中有一个方法

 - (void)_initDefaultProperties

在这个方法中有一个变量名

 _rearViewRevealWidth = 220.0f;//change value and make it screen width.
 _rightViewRevealWidth = 320.0f;//change value and make it screen width.

关于ios - 如何在 SWRevealViewController 中切换前 View Controller 顶部的后 View Controller 动画?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28542692/

相关文章:

ios - 如何将存储在 iphone 中的 pdf 上传到我在 iOS 中的应用程序

ios - 推荐 : RestKit or AFNetworking for Rest/Soap server

ios - SWRevealViewController 与 TabBarController

ios - 按下导航后退按钮时 SWRevealViewController 关闭左侧 View

View 加载前的 Swift 观察者

ios - 为什么在 iOS 8 中我的应用程序在启动时采用了错误的方向?

iphone - iOS:通用应用程序 - 仅作为 iPhone 发布

ios - 始终通过将当前时间与 Objective c ios 中的数组中的时间匹配来触发通知

ios - 如何在 iOS 上获取 "internet time"?

c# - Xamarin : UISearchController is not becoming first responder and editing is not getting started while adding it to Navigation Bar