I am trying to pass some data between my first and second ViewController
.
I already instantiated the second view controller like this:
Registration
Try something based on this :
SecondViewController controller = this.Storyboard.InstantiateViewController("SecondViewController") as SecondViewController;
//Here you pass the data from the registerViewController to the secondViewController
controller.email = registration.email;
this.NavigationController.PushViewController(registration, true);
Hope it helps
try this out
UIStoryboard board = UIStoryboard.FromName("Main", null);
UIViewController ctrl = (UIViewController)board.InstantiateViewController("RegistrationViewController");
ctrl.ModalTransitionStyle = UIModalTransitionStyle.CrossDissolve;
this.PresentViewController(ctrl, true, null);