ios - Trying to detect if tableview scroll is over indexpath.row 0 -
i trying determine if user has scrolled beyond top of table can refresh it. far, have been unsuccessful because seem getting unique situation:
if (indexpath.row < 0) {
the above not work.
if (_tableview.contentoffset.y < -64) {
this works, when pull extremely far (pull content bottom of tableview work). somehow need make need pull little bit, oddly enough, when put @ -63 reacts though @ -64 , continually refreshes.
if(self.tableview.contentoffset.y < (self.tableview.contentsize.height - self.tableview.bounds.size.height)) {
this works, when pull extremely far (pull content bottom of tableview work). somehow need make need pull little bit, oddly enough, when put @ -63 reacts though @ -64 , continually refreshes.
Comments
Post a Comment