Skip to content
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

Navigation from MenuNavigationController to Another ViewController #12

Open
arishanapalli opened this issue Aug 30, 2014 · 2 comments
Open

Comments

@arishanapalli
Copy link

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

@arishanapalli arishanapalli changed the title navigation from MenuNavigationController item selected to another view controller with back option. Navigation from MenuNavigationController to Another ViewController Aug 30, 2014
@thedillonb
Copy link
Owner

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants