繁体   English   中英

kukushi/SideMenu 显示菜单无法从呈现的 anotherViewController 工作

[英]kukushi/SideMenu Reveal Menu not working from presented anotherViewController

我使用侧面菜单库“kukushi/SideMenu”

我将数据发送到另一个 tableViewController (ScheduleTableVC)

    let navigation = UIStoryboard.init(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "SchedulePage") as! UINavigationController
    let vc = navigation.viewControllers.first as! ScheduleTableVC
    vc.text = ""
    self.present(navigation, animated: true, completion: nil)

但是在 ScheduleTableVC 库函数中

    self.sideMenuController?.revealMenu() 

不工作,必须显示菜单

用这个解决

    let navigation = UIStoryboard.init(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "SchedulePage") as! UINavigationController
    let vc = navigation.viewControllers.first as! ScheduleTableVC
    vc.text = ""

    sideMenuController?.setContentViewController(to: navigation, animated: false, completion: nil)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM