UIScrollView works as expected but scrollRectToVisible: does nothing

前端 未结 8 2350
一向
一向 2020-12-14 05:46

I have used UIScrollView before, and am using it now, and never had a problem. I\'m now adding it to an old app, and while it works as expected (I can look at

8条回答
  •  一个人的身影
    2020-12-14 06:03

    Yeah, I have not had success with scrollRectToVisible:animated:, but setContentOffset:animated: always works for me. Out of curiosity, why do you not want to use setContentOffset:animated:? It seems to be the proper solution.

提交回复
热议问题