方法一:利用偏移量來滾動
- (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated;
方法二:利用rect來滾動
- (void)scrollRectToVisible:(CGRect)rect animated:(BOOL)animated;
注意點:如何使用scrollRectToVisible:animated:這個方法,需要把contentSize的width和height都不能為0,否則不能滾動。