view raw
user1120008 user1120008 - 9 months ago 55
iOS Question

long press gesture on table view cell

I want two interactions on a table view cell: normal tap and long press. I used the answer to the following to help me get started:

Long press on UITableView

The problem with that is if I do a long press on a valid cell, the cell will highlight blue, and the long press gesture does not fire (it thinks its just a simple tap). However, if I start the long press gesture on a non-valid cell, then slide my finger over to a valid cell then release, it works just fine.


Maybe disabling selection in IB or programatically

[cell setSelectionStyle:UITableViewCellSelectionStyleNone];