I use SWRevealViewController.
My goal is to handle the selected menu item in front view via delegate protocol - not via prepareforsegue
method.
For example, I'd like to use protocol in rear view class, assign the front view as delegate and when any menu item selected in rear view I will call the delegate method and send the menuItem tag.
The point is I don't know how to assign the front view as delegate to already existed rear view. I can allocate it in code in front view - but for sure this doesn't work. Delegate method isn't called.
Could you please suggest some implementation?