Note that there are some explanatory texts on larger screens.

plurals
  1. POUITableView section header in editing mode only
    primarykey
    data
    text
    <p>The table view section headers in my plain (non-grouped) <code>UITableView</code> only appear when the table has been placed into editing mode. This is because I have two sections in the table view: Active and Inactive. I only wish the Active section to be displayed normally, but require both Active and Inactive to be displayed when in editing mode. Thus, having the section headers display when in editing mode allows the easy distinction between the two table view sections.</p> <p>However, I am encountering the following problem. When the edit button is tapped (to place the <code>UITableView</code> into editing mode) the section headers are inserted and a strip of white space appears above each section in the <code>UITableView</code>. However, the header itself does not display - just white space which exactly matches the dimensions of the section header bar. If I scroll the <code>UITableView</code> (even ever so slightly, not even taking the section header space off-screen) the section header bar immediately appears. It almost seems like the <code>UITableView</code> is not repainting this space correctly.</p> <p>The way that I have got the section headers to display in editing mode only is by placing an <code>if (self.tableView.editing) { }</code> statement in the <code>titleForHeaderInSection</code> delegate method.</p> <p>I have tried doing a <code>[self.tableView reload]</code> and alike which does display the section headers correctly, but also eliminates the nice animation between editing and non-editing mode (which I obviously wish to keep).</p> <p>Any ideas on how to resolve this strange problem would be much appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload