UIScrollView wrong offset with Auto Layout

前端 未结 7 1004
逝去的感伤
逝去的感伤 2020-12-12 22:19

I have a fairly simple view configuration:

A UIViewController, with a child UIScrollView and a UIImageView in this UIScr

7条回答
  •  余生分开走
    2020-12-12 22:51

    For me I went to the IB clicked my view controller that contains the scroll view. Then I went to Attribute Inspector -> View Controller -> Extend Edges -> Uncheck "Under Top Bars" and "Under Bottom Bars".

提交回复
热议问题