Re: Moving cells in a UITableView
Re: Moving cells in a UITableView
- Subject: Re: Moving cells in a UITableView
- From: Quincey Morris <email@hidden>
- Date: Fri, 17 May 2019 22:15:22 -0700
On May 17, 2019, at 14:09 , Carl Hoefs <email@hidden> wrote:
>
> Is this a bug, or is it documented behavior?
>
> Without the following setting:
>
> self.tableView.autoresizingMask |= UIViewAutoresizingFlexibleWidth;
>
> a UITableView won't permit reordering of the table's cells.
I think the problem is that reordering requires the cells to be dragged by the
reordering control at the right-hand end. If your cells don’t resize properly,
the reordering control can be outside the table view, and reordering can’t be
done.
You need to make sure the cells resize properly (and autolayout is probably a
better choice than autoresizing masks).
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden