Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create a UITableView with custom picker-like edit mode
    primarykey
    data
    text
    <p>In a regular <code>UITableView</code> in edit mode you drag the cell into the position you want the cell to be in and the other cells can pop into place. I want to create a <code>UITableView</code> edit mode where you select a cell and it is held in the center as you scroll the tableview to move the selected item, holding the selected item in the center with the table cells moving around the center selected cell. </p> <p>A valid 'bounty worthy' answer will require a minimally working example that holds a selected cell in the center of the table and can be moved by swiping the table up and down. Including the edge cases of first and last position in the table. Alternatively, you can outline the key points of what you think would work and if they lead me in the right direction, then you'll get the bounty.</p> <h2>Update 1</h2> <p>I have established a project called <a href="https://github.com/palmerc/PickerTableView/tree/develop" rel="noreferrer">PickerTableView</a> on GitHub. Working on the develop branch. Selection is working and I'm working on subclassing TableView to handle the movement of the cell on scroll. Finding a working solution before me will still earn the bounty.</p> <h2>Further Clarification</h2> <p>Based upon a comment, I'll provide some ASCII art.</p> <h3>The TableView</h3> <pre><code>|==========| | Next| |==========| | | |----------| | | |----------| | | |----------| | | |----------| | | |==========| </code></pre> <h3>Select a cell, then tap Next</h3> <pre><code>|==========| | Next| |==========| | | |----------| | | |----------| | X| |----------| | | |----------| | | |==========| </code></pre> <h3>Tableview Editing Mode</h3> <pre><code>|=============| | Done| |=============| | | |-------------| | | |-------------| | This cell is| | Highlighted | | and locked | | in place | |-------------| | | |-------------| | | |=============| </code></pre> <p>As you scroll the tableview the cells that were not selected flow around the selected cell while the selected cell stays in the middle.</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.
    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