How to pass data between view controllers in Xamarin

后端 未结 2 1957
抹茶落季
抹茶落季 2021-01-22 03:33

I am trying to pass some data between my first and second ViewController. I already instantiated the second view controller like this:

Registration         


        
2条回答
  •  离开以前
    2021-01-22 04:17

    try this out

      UIStoryboard board = UIStoryboard.FromName("Main", null);
      UIViewController ctrl = (UIViewController)board.InstantiateViewController("RegistrationViewController");
      ctrl.ModalTransitionStyle = UIModalTransitionStyle.CrossDissolve;
      this.PresentViewController(ctrl, true, null);
    

提交回复
热议问题