IPhone UITableViewCell selectionStyle when editing?

I know that I can change the selectionStyle for a UITableViewCell to highlight it in blue or gray, if possible, but how to change it in edit mode?

I don’t want the cell to be selected selectively, only in the editing mode, for example, in the Alarm section of the Clock application.

+4
source share
1 answer

I do not want the cell to be selected, only in edit mode

On your UITableView object, set its allowsSelection property to NO and set its allowsSelectionDuringEditing property to YES .

+4
source

Source: https://habr.com/ru/post/1305270/


All Articles