简体   繁体   中英

UITableview Does Not Scroll Up

I am having some scrolling issues with my tableview.

  • Swiping/panning upwards, the tableview scrolls down.
  • Swiping/panning down does not work, the tableview stays rigid.
  • Swiping/panning upwards, and then quickly swiping downwards works (scrolls up).

Does anyone have any idea why something like this may happen?

Each cell has an image, and a couple of buttons.

I am using SDWebImage, and this issues occurs even once the images are downloaded and cached.

The imageviews' userInteractionEnabled are set to YES, so that should not be a problem either.

I noticed that scrolling, in general, did not work at the top 70% of my screen.

So only when swiping down past the 70% threshold, would the app detect scrolling, hence it would scroll down.

This was because I was using a Dropdown Menu that I found on GitHub (it covered the top 70% of the screen when it was open), that unfortunately interfered with the scrolling, even when hidden.

So basically, for anyone who has the same problem in the future, check for interfering views , that may be affecting the scrolling performance. Especially look for views and other elements from external code/libraries .

If this is not the case, check UIGestureRecognizers as suggested by @RandyJames and @liuyadong in the comments above.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM