//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);
        }
示例#2
0
 public ZutatTableSource(ZutatViewController zutatViewController, List <Zutat> zutatList)
 {
     this.zutatViewController = zutatViewController;
     this.zutatList           = zutatList;
 }