UIScrollView works as expected but scrollRectToVisible: does nothing

前端 未结 8 2338
一向
一向 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:00

    For me the problem was that a constraint in a subview was not explicit. Check that every constraint in your content is set, even if you are not needing it apparently for the layout.

提交回复
热议问题