设置好scrollView.width即是控制滑动的距离,
scrollView.clipsToBounds = NO;控制是否显示多出的部分(可灵活运用)
转载于:https://www.cnblogs.com/piaojin/p/5732662.html