如果UIScrollView无法滚动,可能是以下原因:
Ø没有设置contentSize
ØscrollEnabled = NO
Ø没有接收到触摸事件:userInteractionEnabled = NO
Ø没有取消autolayout功能(要想scrollView滚动,必须取消autolayout)
• contentOffset是UIScrollView当前显示区域的顶点相对于frame顶点的偏移量,相当于在在ScrollView到frame顶点的距离。
• contentInsert是ScrollView的x,y,w,h到各边距的距离。