-
Notifications
You must be signed in to change notification settings - Fork 987
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
Is there a way to use PushViewController from Menu #644
Comments
Yes, push your VC with a navigation controller, then push this navigation controller with SW:
|
A sample written in Swift: Hope this helps. |
Hey, @iDevelopper how about for pushing view controller when it is with tab bar? |
By pushing the tab bar controller itself! |
What did you try? Upload a project and I will have a look! |
Please have a look @iDevelopper |
The front view controller is UITabBarController class, not UINavigationController. Then retrieve the controller for the selected tab and its navigation controller and push:
|
Superb Thanks @iDevelopper 👍 |
Thank you @iDevelopper really you win my heart . I was stuck with this issue and now with your swift code its working perfectly once again thank you so much :) |
For the future, as SWRevealViewControler seems not to be maintained, see: |
@iDevelopper This is the best solution I have ever found on internet. Thank you so much for your sample code and solution. |
@chejarla-venkatesh What? SWTabBar sample or |
@iDevelopper SWNavTest..🙂 |
@chejarla-venkatesh Why don't you try PBRevealViewController? |
@iDevelopper Now My project is almost done and I don't want to disturb it. But I will try it for a sample demo project and would definitely include in my next project for sure. |
@chejarla-venkatesh I do not say it's better but SW seems not to be maintained anymore. One more feature of PB vs SW is the possibility that the side view (left or right) can be shown over the main view. |
@iDevelopper I have just seen project demo on github. It really does looks better than
SW. But as I said I can't make changes to my original project right now..
But I will install it for a demo application.
…On Thu, Sep 20, 2018 at 4:31 PM Patrick ***@***.***> wrote:
@chejarla-venkatesh <https://github.com/chejarla-venkatesh> I do not say
it's better but SW seems not to be maintained anymore. One more feature of
PB vs SW is the possibility that the side view (left or right) can be shown
over the main view.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#644 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYBslPmbQU_bnWcriDtf9_m3sp3PTFPHks5uc3WHgaJpZM4Ku__Q>
.
|
Hello,
We are using Right Menu and the menu / reveal all seems to work OK. But, in addition to the right menu we still show iOS native back button to go back to the previous view controller the user is on. We are now trying to push some view controllers from the menu and are unable to do so. Is there anyway to use PushViewController (or equivalent) where we keep the back button and still show the hamburger menu?
The issue we are facing is if we call NavigationController.PushViewController, NavigationController on Menu will be nil because Menu does not have a NavigationController. If we are going with RevealViewController().PushViewController or RevealViewController().PresentViewController we are losing the back button.
Any ideas to approach this will be of great help.
Thanks
The text was updated successfully, but these errors were encountered: