[英]Swift - jonkykong SideMenu - Push view on top of menu
I'm using jonkykong's SideMenu and I want to push a view controller on top of my menu without dismissing the menu. 我正在使用jonkykong的SideMenu,并且想在不关闭菜单的情况下将视图控制器推到菜单顶部。 Setting
menuDismissOnPush
to false keeps the menu from dismissing, but the pushed view controller is underneath the menu. 将
menuDismissOnPush
设置为false可以使菜单保持关闭状态,但是推送的视图控制器位于菜单下方。 How can I force it on top of the menu? 如何将其强制显示在菜单顶部?
/**
Automatically dismisses the menu when another view is pushed from it.
Note: to prevent the menu from dismissing when presenting, set modalPresentationStyle = .overFullScreen
of the view controller being presented in storyboard or during its initalization.
*/
open var menuDismissOnPush = false
请使用以下代码
SideMenuManager.default.menuPushStyle = .subMenu
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.