iosswiftxcode6xcode-storyboardswrevealviewcontroller

SWRevealViewController with TabbarController set as rootViewController


I'm gonna use SWRevealViewController to create sidebar menu. In my storyboard the rootviewcontroller is a tabbar controller that was pushed from a navigation controller. Here is my storyboard design: enter image description here

I need to add a viewcontroller as SWRevealViewController to implement sidebar menu. How can I achieve that? I'm using swift for my project.Any help would be really appreciable. Thanks.


Solution

  • I manage to solve this by following design: enter image description here

    Set SWRevealViewController as rootviewcontroller. Then connect it to the navigation controller with segue identifier "sw_front".