ios - SWRevealViewController with a TabBarController -
i trying add slide out menu tabbarcontroller using swrevealviewcontroller. how configured storyboard: 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:
Comments
Post a Comment