我正在尝试实现VideoTutorial中给出的SWRevealViewController Library
,我能够成功做到这一点,但我不想在1个 Storyboard 中进行所有操作,我想在2个 Storyboard 中将其分解
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
storyboard = UIStoryboard(name: "MenuDrawer", bundle: nil)
initialViewController = storyboard.instantiateViewControllerWithIdentifier("SWRevealViewController") as! UIViewController
self.window?.rootViewController = initialViewController
self.window?.makeKeyAndVisible()
return true
}
Rightnow MenuDrawer Storyboard拥有所有功能
以及库中定义的以下命令:
现在我想要3和4在不同的 Storyboard 中。但是当我将3和4移到不同的 Storyboard 时,如何在 Storyboard 之间创建segue 2
最佳答案
我不确定我是否理解您的问题,但是您可以尝试以此来获取第二个 Storyboard并从此处加载您的navigationViewController。
let storyBoard : UIStoryboard = UIStoryboard(name: "SecondStoryBoard", bundle:nil)
let deleteViewController = storyBoard.instantiateViewControllerWithIdentifier("SecondNavigationController") as UINavigationController
关于ios - 在多个 Storyboard 中实现SWRevealViewConroller库(滑出菜单),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30497512/