Editing a UITableView programmatically shows a delete button on all rows

I know that I can scroll to show the red Minus button on the line, which then allows me to click on it to show the Delete button on the right side. I also know that I can set it UITableViewto edit mode, in which the red minus button on the left will be displayed, which I can click to show the "Delete" button.

However, I would like to show the Delete button on each line when I put UITableViewinto edit mode. I can’t find a way to do this, and Internet searches are populated with the results of common topics related to deleting one row, rather than showing the Delete buttons on all rows.

How to programmatically show the Delete button of the right side in EVERY line in UITableView? No red minus button on the left side.

+5
source share
1 answer

[tableView setEditing: YES animated: YES];

-3
source

All Articles