scrollview contentsize,contentoffset,bounds,frame,

scrollView.bounds.origin.y = self.tableview.contentoffset.y,

contentoffset:偏移出 当前 scrollview frame的 内容;

当 scrollview滑动 到最下面的 时候,contentSize.height = contentoffset.y + scrollview.frame.height;

滑动到下面,当 contentsize< scrollview.frame.height的时候,contentoffset.y为0,再 继续滑动的时候,contentoffset.y + scrollview.frame.height > contentSize;

contentsize 在 数据源没有变化之前是 不会变化的,而 当滑动的时候,contentoffset相对 frame的位置 是变化的,

原文地址:https://www.cnblogs.com/guligei/p/3288812.html