0

enter image description here

How to remove the default Edit Icons in each cell in Xamarin iOS ? I want the cells to be in Edit Mode always but without the 3lined symbol appearing on the right side of each cell...

MainakChoudhury
  • 502
  • 1
  • 7
  • 23
  • By default it won't work(using straight forward) you need to subclass the UITableViewCell. After changes your customization, the animation is not smooth behaviour – Prasanth Jun 11 '20 at 12:46

1 Answers1

0

It is almost impossible. Here is a hacky solution. I converted it from oc to C#.

public override void SetEditing(bool editing, bool animated)
{
    base.SetEditing(editing, animated);

    if (editing)
    {
        foreach(var view in this.Subviews)
        {
            if(view.Class.Name is "Reorder")
            {
                foreach (var subview in view.Subviews)
                {
                    ((UIImageView)subview).Image = UIImage.FromFile("yourimage.png");
                }
            }
        }
    }
}

However, the solution may be broken at any time when Apple changes the hierarchy of the cell, so I don't suggest you use this way.

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
ColeX
  • 14,062
  • 5
  • 43
  • 240