//ContextualAction zum Bearbeiten des Namens public UIContextualAction contextualAddAction(int row, UITableView tableView) { var action = UIContextualAction.FromContextualActionStyle(UIContextualActionStyle.Normal, "Add Ingredient", (AddItem, view, success) => { ZutatViewController zutatViewController = (ZutatViewController)pizzaViewController.Storyboard.InstantiateViewController("ZutatViewController"); pizzaViewController.NavigationController.PushViewController(zutatViewController, true); success(true); }); action.BackgroundColor = UIColor.Orange; return(action); }
public ZutatTableSource(ZutatViewController zutatViewController, List <Zutat> zutatList) { this.zutatViewController = zutatViewController; this.zutatList = zutatList; }