//When the add button gets tapped void AddTap(object sender, EventArgs e) { //create a EnterDataViewController EnterDataViewController EnterDataVC = new EnterDataViewController(ListofQuestions); //display EnterDataVC this.NavigationController.PushViewController(EnterDataVC, true); }
//When the user taps a cell display EnterDataViewController and pass the content of the cell into it public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { //create a EnterDataViewController EnterDataViewController EnterDataVC = new EnterDataViewController(ListofTriviaQuestions[indexPath.Row], ListofTriviaQuestions); //display EnterDataVC vc.NavigationController.PushViewController(EnterDataVC, true); }