As we all know, tableView is the subclass of scrollView, tableView has every properties that scrollView has.
If you put a tableView above a scrollView, then if (sorry, my English level有限, I will express myself in Chinese after this sentense) scrollView 是可以 上下滚动的, 而tableView 也是上下滚动的,那么 tableview的滚动事件不会被响应,除非 把下面的scrollView 的滚动属性 设置为 NO。
关于iOS 中UIScrollview顶部有一段空白解决办法
if (@available(iOS 11.0, *)) { scroll.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; }
则可