-(void)setBgContentOffsetAnimation:(CGFloat )OffsetX { [UIView animateWithDuration:.25 animations:^ { self.mainScrollView.contentOffset = CGPointMake(OffsetX, 0); }]; }
-(void)setBgContentOffsetAnimation:(CGFloat )OffsetX { [UIView animateWithDuration:.25 animations:^ { self.mainScrollView.contentOffset = CGPointMake(OffsetX, 0); }]; }
转载于:https://www.cnblogs.com/tufei7/p/10861013.html