I have a UITableView that sometimes requires you touch it twice to select a cell.
More specifics:
didSelectRowAtIndexPath
.I have a feeling that the first touch is really making the UITableViewCells selectable or is activating the table in some way.
Things I have checked:
didDeselectRowAtIndexPath
anywhere.UIGestureRecognizers
are using setCancelsTouchesInView:
.Other settings on the table:
self.tableView.scrollEnabled = YES;
self.tableView.showsVerticalScrollIndicator = NO;
self.tableView.bounces = NO;
self.tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
What's causing this?
Oddly enough, setting self.tableView.bounces = YES;
fixed the problem.
I am still looking into the root cause in case anyone has a better answer. Obviously I would like for the table not to bounce, but not if it costs key functionality.
May be you implemented didDeselect instead of didSelect?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With