Re: Moving cells in a UITableView

2019-05-17 Thread Quincey Morris
On May 17, 2019, at 14:09 , Carl Hoefs 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

Re: Moving cells in a UITableView

2019-05-17 Thread Carl Hoefs
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. -Carl > On May 16, 2019, at 8:38 PM, Carl Hoefs > wrote: > > The problem boils

Re: Moving cells in a UITableView

2019-05-16 Thread Carl Hoefs
The problem boils down to this: If a UITableView doesn't have inner-width autoresizing enabled, the table won't get the 'move row' ability. Q: How can I set this property on the UITableView programmatically? -Carl > On May 16, 2019, at 2:29 PM, Carl Hoefs > wrote: > > iOS 12.2 > > I want

Re: Moving cells in a UITableView

2019-05-16 Thread Quincey Morris
On May 16, 2019, at 14:29 , Carl Hoefs wrote: > > iOS 12.2 > > I want to allow the user of my iPhone app to finger-reorder the rows in a > UITableView. > > I set tableView.editing=YES, and I receive 2 callbacks for each row in the > table: > > (1) -tableView:editingStyleForRowAtIndexPath:

Moving cells in a UITableView

2019-05-16 Thread Carl Hoefs
iOS 12.2 I want to allow the user of my iPhone app to finger-reorder the rows in a UITableView. I set tableView.editing=YES, and I receive 2 callbacks for each row in the table: (1) -tableView:editingStyleForRowAtIndexPath: --> return UITableViewCellEditingStyleNone. (2)