I am using ECSlidingViewController for my menu, I have an initial controller, menu and a home page and a login page. In the initial view controller if the user is authenticated they see the home page else I show the login dialog. (using the self topViewController)
Everything seems to be working fine, the problem I have is that when I am in the home view controller
if I click on the menu icon (which I added programmatically) the menu shows up, but if I click again to close it, nothing happens, the menu remains visible.
I added a NSLog and I am able to see that I am calling the right method
- (IBAction)revealSidebar
{
NSLog(@"reveal ");
[self.slidingViewController anchorTopViewTo:ECRight];
}
However the menu doesn't hide itself.
Attached some screenshots to get the idea.
NSLog(@"here ");