开发者

How can I make only one UITableView cell can be highlighted when selected?

I want to make only one cell to be highlighted when it'开发者_开发问答s selected.

I can't use UITableViewCellSelectionStyleNone because I want other cells to be selectable and can be highlighted in edit mode.

Every comment will be appreciated.

Thanks


I figured out how to do this

Just use next two lines in viewDidLoad and made last cell has very big (enough to cover entire cell) UIButton.

self.tableView.allowsSelection = NO;
self.tableView.allowsSelectionDuringEditing = YES;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜