IOS ScrollView pagingEnabled移动指定偏移

scrollView的宽度设置为你想要平移的宽度。比如一次平移 200, 可以将scrollView的frame 设置为

      self.scrollView.frame = CGRectMake(00200, [[UIScreen mainScreen]bounds].size.width); 

       contentSize根据需要去设置就可以。

 其次将scrollView的clipsToBounds这个属性设置为NO,pagingEnabled属性依旧设置为YES。就可以打到自定义平移的这种效果了。

原文地址:https://www.cnblogs.com/gaojingxuan/p/4942980.html