contentSize 是scrollview中的一個屬性,它代表scrollview中的可顯示區域,假如有一個scrollview,它的frame爲(0,0,320,480),而它的contentSize爲(320,960).也就是說,這個scrollview整個內容的大小爲(320,960),要通過上下滑動scrollview來查看(320,480)後的內容。
contentOffset 是scrollview當前顯示區域頂點相對於frame頂點的偏移量,比如上個例子你拉到最下面,contentoffset就是(0 ,480),也就是y偏移了480
contentInset 是scrollview中contentView.frame.origin與scrollview.frame.origin的關係,比如contentView的frame爲(0,30,320,480),那麼contentInset則爲(0, 30),