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

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

 

posted on 2019-05-14 10:52  土匪7  阅读(906)  评论(0编辑  收藏  举报