Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不确定为什么 UIScrollView 顶部有这么多空白。如果我切换选项卡并再次返回此选项卡,则一切正常。见下图:
我该如何解决?
更新:
作为描述的第一个 UILabel 的约束如下所示:
解决方法是在 viewDidLoad 之后执行以下代码行;
self.automaticallyAdjustsScrollViewInsets = NO;