-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to hide left menu when tapped a menu in left menu? #101
Comments
This should happen automatically. Can you explain a little more? |
Not sure I understand. |
Maybe I am starting to understand. Yo want to present the currently selected Content View Controller when you tap the first cell, in your screenshot the "menu" cell. This is the effect obtained when you tap on the visible part of the selected Content View Controller.
|
Thanks for your support always. I think the following code is almost what I wanted. -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
} Now I've looked into SASlideMenuRootViewController and maybe I want to call the method below in tableView didSelectRowAtIndexPath instead. [self.rootController doSlideToSide]; But xcode says "Reciever type 'SASlideMenuRootViewController' for instance message is forward declaration'. |
Maybe you are right the best think you can do is to call the SASlideMenuRootViewController method:
The problem is that it is not a "public" method, thus you have to put the method declaration in the SASlideMenuRootViewController.h file, this should solve the "forward declaration" problem. |
Thanks for your comment. I see that need to call doSlideIn. But as you said, forward declaration problem is pretty hard for me at the moment. Hope someone will update some time. |
You should add to SASlideMenuRootViewController.h:
If it does not works and you have a simple example of your code you can post it here and I will have a look at it. |
Hello, thanks for your useful library.
I wonder if I can hide left menu when a menu cell is tapped?
Thanks in advance.
The text was updated successfully, but these errors were encountered: