Method to make reorder frame to cover entire cell clickable on moving in Xamarin.iOS

Amit_Malhi01Amit_Malhi01 Member ✭✭
edited December 2 in Xamarin.iOS

//Override the method in TableCell

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

        if (!editing || reorderControl != null)
        {
            return;
        }

        foreach (var item in Subviews)
        {
            if (item.Description.Contains("Reorder"))
            {
                foreach (var reoderItem in item.Subviews)
                {
                    reoderItem.RemoveFromSuperview();
                }
                reorderControl = item;
                break;
            }
        }
        reorderControl.Frame = ContentView.Bounds;

}

//Where ContentView.bounds is equal to cell bounds.

Sign In or Register to comment.