objective c - iOS UITableViewCell needs to be pressed twice to call didSelectRowAtIndexPath -
i have uitableview requires touch twice select cell.
more specifics:
two touches needed after table has been scrolled way or way down. only sec touch callsdidselectrowatindexpath
. when table opens in natural "scrolled position", cells indeed selectable 1 touch. if scroll little bit (not way down/up), cells select 1 touch. if cells not fill whole table , scrolling not required, works fine. go way top or bottom , have touch twice. i have feeling first touch making uitableviewcells selectable or activating table in way.
things have checked:
my code doesn't phone calldiddeselectrowatindexpath
anywhere. no uigesturerecognizers
using setcancelstouchesinview:
. other settings on table:
self.tableview.scrollenabled = yes; self.tableview.showsverticalscrollindicator = no; self.tableview.bounces = no; self.tableview.separatorstyle = uitableviewcellseparatorstylesingleline;
what's causing this?
updateoddly enough, setting self.tableview.bounces = yes;
fixed problem.
i still looking root cause in case has improve answer. table not bounce, not if costs key functionality.
may implemented diddeselect instead of didselect?
ios objective-c uitableview
No comments:
Post a Comment