thedillonb / MonoTouch.SlideoutNavigation

A MonoTouch slide-out UI component
40 stars 24 forks source link

Navigation from MenuNavigationController to Another ViewController #12

Open arishanapalli opened 10 years ago

arishanapalli commented 10 years ago

Hello, I am using this component on an Xamarin.iOS project running iOS7 and it's working quite good. I have a small issue with it, I added to two ViewController one DashBoardViewcontroller another one is SliderMenuViewController which added to window.RootViewController with integration of SlideoutNavigationController, MainNavigationController and MenuNavigationController.

var Menu = new SlideoutNavigationController(); Menu.MainViewController = new MainNavigationController(new DashBoardViewController(), Menu); Menu.MenuViewController = new MenuNavigationController(new SliderMenuViewController(), Menu); navigationController.AddChildViewController (Menu); window.RootViewController = navigationController; window.MakeKeyAndVisible (); return true;

After Application launches default it shows DashBoardViewcontroller with three line on navigationBar. On click three line it shows SliderMenuViewController. I was happy with this animated effects for my controller using this awesome MonoTouch.SlideoutNavigation.

In SliderMenuViewController I have added tableview. On selected item i am loading another ViewController which is SearchViewController.

switch (tableItems [indexPath.Row] ) { case "Search": var searchViewController = new SearchViewController (); this.controller.NavigationController.PushViewController (searchViewController, true); break; default : break; }

issue Its replace DashBoardViewController with SearchViewController. It shows SearchViewController with three line button on navigationbar left side. but i am expecting SearchViewController with navigationbar with back button. On click back again it shows to me DashBoardViewController.

For more detail I am attaching Images

ios simulator screen shot 31-aug-2014 1 29 12 am

On Click DashBoardViewController SearchButton Its Navigate SearchViewController

ios simulator screen shot 31-aug-2014 1 29 41 am

On Click Search in SliderMenu replace DashBoardViewController With SearchViewController. Issue ios simulator screen shot 31-aug-2014 1 32 09 am.

@thedillonb Thank you in Advance

thedillonb commented 10 years ago

Hello @arishanapalli. Just so I understand what you're looking for, when you click "Search" in your SliderMenuViewController you'd like the SearchViewController to pushed onto your DashBoardViewcontroller so it shows a back button that will go back to the previous view?

arishanapalli commented 10 years ago

When I click search Button on DashBoardViewcontroller its show SearchViewController with back navigation button, But when i click search on SliderMenuViewController (i.e TableView Added to SliderMenuViewController) on that search I click the expected result push SearchViewController with back button navigation, same as when i click search on DashBoardViewcontroller. but Its add SearchViewController on DashBoardViewcontroller there will be no back, So unable to go back to DashBoardViewcontroller.