How to disable: Drag across UITableViewCell selects it
When you drag over a UITableViewCell in a TableView, the cell gets h开发者_如何学Cighlighted ("selected"), but didSelectRow... is not called. I wish to disable that selection. How would I do that? Note that setting the selectedStyle for a cell to selectedStyleNone, or something like that, is not what I want. I really want the OS not to select it.
Thanks in advance,
I think the property your searching for is BOOL allowsSelection
declared in UITableView. By passing "no" the tableViewCell is not selected when the user touches it. The same is true for BOOL allowsSelectionDuringEditing
.
I hope that fixes your problem ;)
精彩评论