scrollView and tableView

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; }

则可

posted on 2015-11-30 23:10  🌞Bob  阅读(116)  评论(0编辑  收藏  举报

导航