设置Controller 的属性 automaticallyAdjustsScrollViewInsets = false 即可
self.automaticallyAdjustsScrollViewInsets = false;
A Boolean value that indicates whether the view controller should automatically adjust its scroll view insets.
一个布尔值,表明视图控制器是否应该自动调整其insets滚动视图。
本文介绍如何通过设置属性automaticallyAdjustsScrollViewInsets为false来禁用视图控制器自动调整其滚动视图的insets。
531

被折叠的 条评论
为什么被折叠?



