iOS:当菜单打开时,使用 JASidePanel 保持中心面板中的交互性



我正在一个通用的iOS应用程序中使用JASidePanel。每当用户在iPad上处于横向模式时,我都会使侧边栏菜单可见,但是当菜单打开时,centerPanel的UI组件似乎被禁用了。点击任意位置只是关闭菜单,然后centerPanel交互性恢复。但我想保持菜单打开并在任何地方保持交互性(类似于 Wunderlist 的做法)。

JASidePanel可以做到这一点吗?我已经查看了类方法,但没有看到相关选项,但我想在撕掉它并尝试不同的菜单系统之前进行确认。

谢谢!

此方法是唯一更改userInteractionEnabled位置:

https://github.com/gotosleep/JASidePanels/blob/master/JASidePanels/Source/JASidePanelController.m#L244

使用 KVO 监视此属性:

https://github.com/gotosleep/JASidePanels/blob/master/JASidePanels/Source/JASidePanelController.h#L139

每当它发生变化时,请确保所有这些视图都userInteractionEnabled = YES

https://github.com/gotosleep/JASidePanels/blob/master/JASidePanels/Source/JASidePanelController.h#L139

最新更新