UIScrollView setContentOffset: animated:YES 偶尔卡顿解决方案

-(void)setBgContentOffsetAnimation:(CGFloat )OffsetX {
    [UIView animateWithDuration:.25 animations:^ {
        self.mainScrollView.contentOffset = CGPointMake(OffsetX, 0);
    }];
}

猜你喜欢

转载自www.cnblogs.com/tufei7/p/10861013.html
今日推荐