三個重點:
1、contentSize
2、contentOffset
3、contentInset
BOOL bounces 彈簧效果
BOOL scrollEnabled 是否能滾動
BOOL showsHorizontalScrollIndicator 是否顯示水平滾動條
BOOL showsVerticalScrollIndicator 是否顯示垂直滾動條
ScrollView的手勢縮放步驟
1、給視圖設置代理
2、設置縮小的最小比例
3、設置放大的最大比例
4、實現方法:viewForZoomingInScrollView:scrollview
分頁效果:
1、將滾動視圖的pagingEnabled設置爲yes
1、1利用UIPageControl分頁控制控件
1、2給控件添加監聽方法