Setting contentOffset programmatically triggers scrollViewDidScroll

前端 未结 6 1298
别跟我提以往
别跟我提以往 2020-12-04 09:02

I\'ve got a a few UIScrollView on a page. You can scroll them independently or lock them together and scroll them as one. The problem occurs when they are locke

6条回答
  •  温柔的废话
    2020-12-04 09:46

    Try

    id scrollDelegate = scrollView.delegate;
    scrollView.delegate = nil;
    scrollView.contentOffset = point;
    scrollView.delegate = scrollDelegate;
    

    Worked for me.

提交回复
热议问题