public override bool CanSwipeToState(SWTableViewCell cell, SWCellState state) { switch (state) { case SWCellState.Left: // set to false to disable all left utility buttons appearing return(false); case SWCellState.Right: // set to false to disable all right utility buttons appearing return(true); } return(true); }
public override void ScrollingToState(SWTableViewCell cell, SWCellState state) { switch (state) { case SWCellState.Center: Console.WriteLine("utility buttons closed"); break; case SWCellState.Left: Console.WriteLine("left utility buttons open"); break; case SWCellState.Right: Console.WriteLine("right utility buttons open"); break; } }
public override void ScrollingToState(SWTableViewCell cell, SWCellState state) { switch (state) { case SWCellState.Center: Console.WriteLine("utility buttons closed"); cell.Accessory = UITableViewCellAccessory.DisclosureIndicator; break; case SWCellState.Left: Console.WriteLine("left utility buttons open"); break; case SWCellState.Right: Console.WriteLine("right utility buttons open"); cell.Accessory = UITableViewCellAccessory.None; break; } }
public void HideSwipedContent(bool animated) { cellScrollView.SetContentOffset(new PointF(ScrollLeftViewWidth, 0), animated); cellState = SWCellState.Center; OnScrolling(); }
public override bool CanSwipeToState(SWTableViewCell.SWTableViewCell cell, SWCellState state) { switch (state) { case SWCellState.Left: // set to false to disable all left utility buttons appearing return true; case SWCellState.Right: // set to false to disable all right utility buttons appearing return true; } return true; }
public override void ScrollingToState(SWTableViewCell.SWTableViewCell cell, SWCellState state) { switch (state) { case SWCellState.Center: Console.WriteLine("utility buttons closed"); break; case SWCellState.Left: Console.WriteLine("left utility buttons open"); break; case SWCellState.Right: Console.WriteLine("right utility buttons open"); break; } }