我正在使用这个库https://github.com/jonkykong/SideMenu 开放问题没有帮助
当我的应用首次启动时,我从左向右滑动以弹出侧面菜单,我看到黑屏
当我选择菜单项并且它有子视图控制器时,我转到那个子控制器,然后我回去,然后执行第1步导致杂乱的侧边菜单 - 显然出错了。
信息:蓝色背景,如果侧面菜单是一个UIimageView,遍布整个视图,有方面填充,所以我不知道它是如何被显示为图像块 我该怎么办呢?感谢
故事板的截图:
初始导航控制器http://joxi.net/eAOGGOVuPkBVAo
子视图控制器http://joxi.ru/xAe66odUGXwPry
的情况链接到youtube视频https://youtu.be/PRk-WsShGlM
答案 0 :(得分:1)
您可能无法以编程方式正确设置菜单。来自自述文件:
let menuLeftNavigationController = UISideMenuNavigationController(rootViewController: YourViewController)
menuLeftNavigationController.leftSide = true
// UISideMenuNavigationController is a subclass of UINavigationController, so do any additional configuration
// of it here like setting its viewControllers. If you're using storyboards, you'll want to do something like:
// let menuLeftNavigationController = storyboard!.instantiateViewController(withIdentifier: "LeftMenuNavigationController") as! UISideMenuNavigationController
SideMenuManager.menuLeftNavigationController = menuLeftNavigationController