【问题标题】:side menu by jonkykong (library for ios swift 3) is not loading when swipedjonkykong 的侧边菜单(ios swift 3 的库)在滑动时未加载
【发布时间】:2017-02-14 03:18:27
【问题描述】:

我正在使用这个库https://github.com/jonkykong/SideMenu 打开问题没有帮助

当我的应用程序首次启动时,我从左向右滑动以弹出侧边菜单,我看到黑屏

当我选择菜单项并且它具有子视图控制器时,我转到那个子控制器,然后返回,然后执行第 1 步会导致侧面菜单混乱 - 显然出了点问题。

信息:如果侧边菜单是在整个视图中拉伸的 UIimageView,则为蓝色背景,具有方面填充,所以我不知道它是如何显示为图像块的 我该如何解决?谢谢

故事板截图:

初始导航控制器http://joxi.net/eAOGGOVuPkBVAo

子视图控制器的案例http://joxi.ru/xAe66odUGXwPry

链接到 youtube 视频https://youtu.be/PRk-WsShGlM

【问题讨论】:

    标签: ios swift3


    【解决方案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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-09
      • 1970-01-01
      • 2015-07-29
      • 1970-01-01
      • 1970-01-01
      • 2017-09-28
      相关资源
      最近更新 更多