[英]Navigation drawer menu with “SWRevealViewController” in iOS swift3
我使用SWRevealViewController
實現了導航抽屜菜單。 它可以作為菜單抽屜正常工作,這是位於rootviewcontroller
的導航菜單,但是在我的應用程序中,僅在登錄頁面之后,我才需要在主頁中顯示導航菜單。
在主頁中,為什么它不起作用?
這將導致登錄后出現主屏幕。
這將導致側欄菜單。
4)還要在Appdelegate的didFinishLaunchingWithOptions中編寫以下方法:
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let swRevealView: SWRevealViewController!
swRevealView = storyboard.instantiateViewControllerWithIdentifier("swRevealView") as! SWRevealViewController
self.window?.rootViewController = swRevealView
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.