ios - SWRevealViewController with a TabBarController -


i trying add slide out menu tabbarcontroller using swrevealviewcontroller. how configured storyboard: enter image description here nothing happen when click button in first viewcontolloer (top right corner).

    @iboutlet var menubutton: uibarbuttonitem!      override func viewdidload() {       super.viewdidload()               if self.revealviewcontroller() != nil {           menubutton.target = self.revealviewcontroller()           menubutton.action = "revealtoggle:"         self.view.addgesturerecognizer(self.revealviewcontroller().pangesturerecognizer())             // uncomment change width of menu           //self.revealviewcontroller().rearviewrevealwidth = 62          }    } 

i tried add nav controller tab bar this answer suggested, nothing happened.

both front , rear vc set correctly:

enter image description here

enter image description here


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -