对scrollView的属性contentSize contentOffset contentInset个人理解

contentInset 为contentView的四个边于srollview四个边的距离

contentOffset 是contentview的左顶点 于 srollview的左顶点的距离

两者之间没有关系,contentInset决定了contentview滑动到尽头时距离srollview的四个边距,contentOffset决定了contentview在srollview中的位置

原文地址:https://www.cnblogs.com/hellocby/p/2976148.html