在http://www.appcoda.com/tag/swrevealviewcontroller/上有一篇很棒的博客文章,其中介绍了设置SWRevealViewController,它是滑出侧边菜单的一个很好的组件(https://github.com/John- Lluch/SWRevealViewController)
不幸的是,没有关于如何执行手动segue的快速示例.
对故事板支持采取更清晰的方法.现在不推荐使用SWRevealViewControllerSegue,您应该使用SWRevealViewControllerSegueSetController和SWRevealViewControllerSeguePushController.
我尝试过以下方面:
let navigationController = self.window?.rootViewController as! SWRevealViewController;
let viewController = navigationController.storyboard?.instantiateViewControllerWithIdentifier("ImportFileSelect") as! ImportFileSelect
navigationController.showViewController(viewController, sender: self)
Run Code Online (Sandbox Code Playgroud)
但这不起作用.有任何想法吗?我已经在网上搜索了一些快速的例子,我的下一步是学习目标c!