Note that there are some explanatory texts on larger screens.

plurals
  1. POios UITableView delete/re-arrange editing mode but not show delete icon
    primarykey
    data
    text
    <p>I have create a <code>UITableView</code> in editing mode, I force it run into editing mode on viewDidLoad function of a viewcontroller containing this tableview. Everything is fine, each row of table has a delete icon on the left, <code>re-arrange</code> icon on the right. I implemented</p> <pre><code>- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { return UITableViewCellEditingStyleDelete; } - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { return YES; } </code></pre> <p>The problem is on each row I don't want to show a red delete icon on the left, just show a re-arrange icon on the right. When user want to delete, he/she can swipe a row to delete.</p> <p>The reason I want to do this is I don't encourage user to delete a row product. I understand I can put a Edit button, when user click on this button, I turn into Edit mode, but I don't want to do so, I want to display a re-arrange function on the beginning when user go into my viewcontroller.</p> <p>Can I do so.</p> <p>Let me put some screen shot</p> <p><img src="https://i.stack.imgur.com/nJnbu.png" alt="This is what I got"></p> <p><img src="https://i.stack.imgur.com/DciRE.png" alt="This is what I want to show. When user swipe I want to show a Delete button overlay the arrange icon on the right"></p> <p>The first image is what I got.</p> <p>The second image is what I actually want to show. When user swipe I want to show a Delete button overlay the arrange icon on the right</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.
 

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