-
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
SASlideMenuRootViewController controllerForIndexPath and switchToContentViewController #118
Comments
Hi Alex, |
Ah, ok, I think I understand better now. What would you say is the best way to extend SASlideMenu's functionality to change content view controllers without an animation? |
After experimenting with a few different methods, the best way I found was to manipulate the slide menu data source / delegate, like so:
Although I am still having trouble finding a good way to access the navigation controller I just switched to. Looks like this is primarily accounted for in the private property selectedContent. |
Hi Alex, The hack you are using seems ok to me, in future versions I will add the ability to switch without animations.
|
Hey, I was wondering if the SASlideMenuRootViewController methods controllerForIndexPath and switchToContentViewController are supposed to enable a non-animated switch in the content view controller.
I know that the slide menu method selectContentAtIndexPath allows a programmatic segue, but it shows a menu closing animation.
Looks like the SASlideMenuRootViewController's ->controllers only becomes something when the method addContentViewController is called.
Just want to make sure I'm not missing anything.
The text was updated successfully, but these errors were encountered: