Is it possible to have a uitableview that when in editing mode it shows both the red button (‘-‘) and the green button (+)
I wanted to do so I can either delete a row or duplicate it.
Is it possible to have a uitableview that when in editing mode it shows
Share
No, to display both you would need to make one of them a custom control.
Probably the best approach is to make a custom cell and add an additional button to the left or right of where the red ‘-‘ button usually appears. You can then use a custom graphic that mimics the green ‘+’ button and set it up to trigger on tap.
If you only want it to show in edit mode you can selectively show/hide it based on that too.
The end result will be cells with + buttons and – buttons next to each other.