iOS AutoLayout issue with ScrollView

后端 未结 3 1311
借酒劲吻你
借酒劲吻你 2021-01-21 11:33

Hello i have an auto layout issue with UIScrollView and ModalViewController. Here are my coding steps as sample code:

1) I have an UIView

3条回答
  •  鱼传尺愫
    2021-01-21 12:05

    I think this might be a bug in iOS autolayout wrt UIScrollViews. I was having a similar problem only in my case, I would push to a detail view, then pop back to the master view which is a UIScrollView. Content in the scroll view would be shifted up. Scrolling the scroll view to the top, then pushing and popping again and things would be properly reset.

    I even tried plain out of the box master detail app using a UIScrollView instead of a table view as master, and was able to demonstrate the defect.

    Table views and Collection views do not seem to have this problem.

提交回复
热议问题