我正在使用这个库 https://github.com/jonkykong/SideMenu 打开问题没有帮助
当我的应用程序首次启动时,我从左向右滑动以弹出侧边菜单,我看到黑屏
当我选择菜单项并且它有 subview Controller 时,我转到那个子 Controller ,然后我返回,然后执行第 1 步导致侧边菜单困惑 - 显然出了问题。
信息:如果侧边菜单是 UIimageView,则蓝色背景在整个 View 中延伸,具有纵横比填充,所以我不知道它是如何显示为图像 block 的 我该如何解决?谢谢
Storyboard截图:
初始导航 Controller http://joxi.net/eAOGGOVuPkBVAo
带有 subview Controller 的案例 http://joxi.ru/xAe66odUGXwPry
YouTube 视频链接 https://youtu.be/PRk-WsShGlM
最佳答案
您可能没有以编程方式正确设置菜单。来自自述文件:
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
关于ios - 滑动时未加载 jonkykong 的侧边菜单(适用于 ios swift 3 的库),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41712077/