I use UITableView with variable cell heights. The table is always in editing mode (showing reorder controls).
The problem is that in order to calculate height of the cell in tableView:heightForRowAtIndexPath:, I need to know width of contentView. Alternatively it’d enough to know the width of reorder controls.
Is there a way to do it without getting it from undocumented subviews or using fixed size values?
This is almost a hack, but it should work. Knowing that the reorder accessory width is always 40px on all devices, the cell content width in edit mode should always be equal to: