contentSize 是scrollview的一个属性,它代表scrollView中的可显示区域。一般contentsize要比自身的frame大几倍,要么是横屏侧拉,要么是竖屏侧拉。像一些广告牌子,都是这样的效果,最近发现PPS上的,广告都是这种自动滑动的效果,爱奇艺也是。
contentOffset在Xcode的工具书里是这么解释的:The point at which the origin of the content view is offset from the origin of the scroll view.
是scrollView当前显示区域顶点相对于frame顶点的偏移量。。就是上或下偏移的距离。
contentInset在Xcode的工具书里是这么解释的:The distance that the content view is inset from the enclosing scroll view.
是scrollView的contentView的顶点相对于scrollView的位置。。