UITableView scrolling problems when inside a UIScrollView

前端 未结 4 863
被撕碎了的回忆
被撕碎了的回忆 2021-01-05 01:06

I have a UIScrollView (with paging) to which I add three UIViews. Each of these UIViews has a UITableView inside. So, the user should be able to scroll horizontally to the p

4条回答
  •  独厮守ぢ
    2021-01-05 02:05

    I tried to reproduce a simplified version of your needs using basically Interface Builder and it seems to me it's working using basic coding and using default settings. Can you pls check my quick n dirty Github repo and kindly ask to reply whether it is applicable to your situation or what is missing.

    https://github.com/codedad/SO_ScrollView_with_Tables

    By default Interface Builder creates UIScrollView and UITableViews enabling:

    • Delays Content Touches ON
    • Cancellable Content Touches ON

提交回复
热议问题