I'm trying to implement SWRevealViewController but having some issue while trying to display the menu from the right. In their documentation, in order to display it from the left we should do
[self.sidebarButton setTarget: self.revealViewController];
[self.sidebarButton setAction: @selector (revealToggle:)];//this works
and if we want to do it from the right, we should change the revealToggle
torightRevealToggle
.
But when I do that, nothing happens, What am I forgetting to do there?
Note: I'm adding Swift as a tag, as it's the same with swift, just a different syntax.