• 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的位置 是变化的,

  • 相关阅读:
    maxProfit2
    maxProfit
    getRow
    generate
    hasPathSum
    minDepth
    isBalanced
    sortedArrayToBST
    不得不学的 TCP三次握手和四次挥手
    java生态框架、中间件该有的都有了
  • 原文地址:https://www.cnblogs.com/guligei/p/3288812.html
Copyright © 2020-2023  润新知