Could you please help me. I need to perform editing cells. The editing should look like:
when I press a barButtonItem (the right one on the nav bar) the content of cells should slightly move to the right and checkboxes should appear. The user should be able to select several cells and commit editing by clicking on the same navButton.
I’ve tried to use standard editing but I can’t figure out how:
– to select multiple cells and only then commit editing
– how to set commit action to navButton but not to red delete button which appears next to each selected cell
Could you please help me. I need to perform editing cells. The editing should
Share
Multi-selection is regarded as one of the editing style. Therefore, to make a cell multi-selectable, implement this in your UITableViewDelegate:
The “3” here means multiselection. The result is like this:
To get the selected rows, call the
If you dislike the red check mark, you can use the undocumented multiselectCheckmarkColor property to change it. Unfortunately, it has to be applied on the whole table.
The light blue background color cannot be changed unless you subclass or categorize
Hope, this will help you..