public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { // If the intructions section is tapped, navigate to the instructions view controller if (indexPath.Section == (int)RecipeSection.Instructions) { InstructionsViewController nextViewController = new InstructionsViewController(); // pass the recipe to the instructions view controller nextViewController.Recipe = Recipe; controller.NavigationController.PushViewController(nextViewController, true); } }
public override void RowSelected (UITableView tableView, NSIndexPath indexPath) { // If the intructions section is tapped, navigate to the instructions view controller if (indexPath.Section == (int) RecipeSection.Instructions) { InstructionsViewController nextViewController = new InstructionsViewController (); // pass the recipe to the instructions view controller nextViewController.Recipe = Recipe; controller.NavigationController.PushViewController (nextViewController, true); } }