开发者

iPhone UITableViewCell selectionStyle when editing?

开发者 https://www.devze.com 2022-12-24 02:48 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号