一:用Segue跳转页面
按住Ctrl连线,选择show,后台覆写 ShouldPerformSegue方法,返回True跳转,False取消跳转。
二:通过代码跳转至StoryBoard页面
UIStoryboard TempMainBod = UIStoryboard.FromName ("Main", null);—— ——StoryBoard文件名 UIViewController TempVC = TempMainBod.InstantiateViewController ("MainTabBarView");—— ——界面StoryBoardID this.PresentModalViewController (TempVC, false);
三:通过RootViewController跳转
var vc = new ViewController ();
var navController = new UINavigationController (vc);
Window.RootViewController = navController;
四:通过UInavigationControl进行页面跳转
var user = new UIViewController (); btn.TouchUpInside += (sender, e) => { this.NavigationController.PushViewController (user, true); };