Saturday 15 March 2014

objective c - iOS UITableViewCell needs to be pressed twice to call didSelectRowAtIndexPath -



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 calls didselectrowatindexpath. 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 call diddeselectrowatindexpath 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?

update

oddly 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