The Hit List Diary #4 – Table Editing Styles

When editing a list, we allow the selection of multiple tasks for applying further actions to (i.e. moving or deleting them).

At first glance, this is dead easy to implement. Simply turn on .allowsMultipleSelectionDuringEditing for the table view. And of course, there’s a handy checkbox in Interface Builder for it.

But there’s a catch. With this flag on, UITableView stops supporting swipe-to-delete behaviour. So, slightly annoyingly, we have to switch on multiple selection only when actually needed:

(hopefully you remember _isEditingIndividualRow from my previous entry)

© Mike Abdullah 2007-2015