4

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?

Artyom
  • 371
  • 1
  • 4
  • 14
  • 2
    Possible duplicate of [Custom edit view in UITableViewCell while swipe left. Objective-C or Swift](https://stackoverflow.com/questions/19164188/custom-edit-view-in-uitableviewcell-while-swipe-left-objective-c-or-swift) – Scriptable Jul 17 '18 at 10:21
  • No way, Use custom. – Jack Jul 17 '18 at 10:59
  • The "red circle" is using to delete the entire row in iOS default. Do you need this action ?? If no, then you can hide the red icon and by designing your custom cell you can get table cell with round icon. – gEeKyMiNd Aug 07 '18 at 12:03

2 Answers2

3

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.

Tom E
  • 1,530
  • 9
  • 17
0

I found helpful the code from this answer although only when calling it in layoutSubviews().

dobranoc
  • 465
  • 1
  • 4
  • 17