Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize tableView edit mode ios

So apple provides the edit mode which looks like this:

enter image description here

Is there a way to use custom icons for "red circle" and "hamburger menu"? Also to change "x" or "y" position?

like image 896
Artyom Avatar asked Oct 29 '25 16:10

Artyom


1 Answers

When putting a UITableViewin editing mode using setEditing(_:animated:), “the table view goes into editing mode by calling setEditing(_:animated:) on each visible UITableViewCell object” according to Apple’s UITableViewdocumentation. You could create a custom UITableViewCell subclass and override setEditing(_:animated:) there, using custom image views holding your versions of the circle and hamburger symbols inside your cell’s XIB.

like image 92
Tom E Avatar answered Oct 31 '25 07:10

Tom E