开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜