UICollectionView inside UIScrollView not scrolling

放肆的年华 提交于 2019-12-23 18:43:26

问题


I have a vertically-scrolling scroll view that has a single subview. This subview has a couple of collection views. I want them to scroll horizontally. It doesn't work because they are inside the scroll view. The problem is that the pan/scrolling gesture is working just for the scroll view and it doesn't propagate to the collection views. I just see the scroll view scrolling. There is the same problem with tapping on a collection cell. This event just doesn't happen.

I already tried adding the gestures manually but I am not able to scroll the collection views.

How can I propagate all the gestures ?

Thank you !

]1

来源:https://stackoverflow.com/questions/43634939/uicollectionview-inside-uiscrollview-not-scrolling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!