[英]UITableview Does Not Scroll Up
I am having some scrolling issues with my tableview. 我的tableview出现一些滚动问题。
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. 我正在使用SDWebImage,即使下载并缓存了图像,也会出现此问题。
The imageviews' userInteractionEnabled are set to YES, so that should not be a problem either. imageviews的userInteractionEnabled设置为YES,因此也不是问题。
I noticed that scrolling, in general, did not work at the top 70% of my screen. 我注意到,滚动通常不会在屏幕的前70%起作用。
So only when swiping down past the 70% threshold, would the app detect scrolling, hence it would scroll down. 因此,只有向下滑动超过70%阈值时,应用程序才会检测到滚动,因此它将向下滚动。
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. 这是因为我使用的是我在GitHub上找到的Dropdown Menu(下拉菜单在打开时覆盖了屏幕的前70%),不幸的是,即使隐藏起来,也干扰了滚动。
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. 如果不是这种情况, 请检查 @RandyJames和@liuyadong在上面的注释中建议的UIGestureRecognizers 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.