public static void SetSwipeGestureWithView(this MCSwipeTableViewCell cell, UIImage Image, UIColor Color, MCCellMode Mode, MCCellState State, MCSwipeCompletionBlock Completion)
        {
            switch (State)
            {
            case MCCellState.One:
                cell.Color1           = Color;
                cell.View1            = ViewWithImage(Image);
                cell.ModeForState1    = Mode;
                cell.CompletionBlock1 = Completion;
                break;

            case MCCellState.Two:
                cell.Color2           = Color;
                cell.View2            = ViewWithImage(Image);
                cell.ModeForState2    = Mode;
                cell.CompletionBlock2 = Completion;
                break;

            case MCCellState.Three:
                cell.Color3           = Color;
                cell.View3            = ViewWithImage(Image);
                cell.ModeForState3    = Mode;
                cell.CompletionBlock3 = Completion;
                break;

            case MCCellState.Four:
                cell.Color4           = Color;
                cell.View4            = ViewWithImage(Image);
                cell.ModeForState4    = Mode;
                cell.CompletionBlock4 = Completion;
                break;
            }
        }
Example #2
0
 public virtual void DidSwipeWithPercentage(MCSwipeTableViewCell cell, float percentage)
 {
     throw new You_Should_Not_Call_base_In_This_Method();
 }
Example #3
0
 public virtual void DidStartSwiping(MCSwipeTableViewCell cell)
 {
     throw new You_Should_Not_Call_base_In_This_Method();
 }