kukushi/SideMenu 显示菜单无法从当前的另一个 ViewController 工作
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)
我使用侧边菜单库"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)