iPhone UITableViewCell selectionStyle when editing?
I know I can change the selectionStyle
of a UITableViewCell
to make it highlight blue or grey when selected, but how can I change this when in editing mode?
I don't want the cell to normally by selectable, only when in editing mode, like the Alarm part of the Clock 开发者_运维问答application.
I dont want the cell to normally by selectable, only when in editing mode
On your UITableView
object, set its allowsSelection
property to NO
, and set its allowsSelectionDuringEditing
property to YES
.
精彩评论