Xamarin IOS navigate to another view controller without button on xamarin
15,057
Another thing that you can do is push to another view controller...
AssignCaseController assignCaseController = this.Storyboard.InstantiateViewController("AssignCaseController") as AssignCaseController;
if (assignCaseController != null)
{
assignCaseController.CaseID = GetCurrentCaseID();
this.NavigationController.PushViewController(assignCaseController, true);
}
Author by
Admin
Updated on June 04, 2022Comments
-
Admin almost 2 years
i start using xamarin to create ios software. in mainstoryboard, i navigate PageMain view controller to PageTo view controller. I want navigate from PageMain view controller to PageTo view controller. i use this code and did not auto navigate:
var storyBoard = UIStoryboard.FromName ("MainStoryboard", null); storyBoard.InstantiateViewController ("PageTo");
tried this one too but also not auto navigate :
PageMainViewController *viewController = segue. PageToViewController; viewController.delegate = self;
tried this one too but also not auto navigate :
UIViewController pageto = new PageTo (); pageto.Transition (PageMain, PageTo);
i know it, it easier use button to create push seque to PageTo view controller, but i did not want it. please help me.