iOS 执行ScrollView在空白空间-解

iOS7 中间UIViewControllers配置automaticallyAdjustsScrollViewInsets。假设YES。scrollview它会根据status bar, navigation bar以及tool bar要么tab bar自己主动的高度调节。

能够通过在storyboard的右側进行设置。在Attributes Inspector中。不勾选“Adjust Scroll View Insets”。


翻译自:

http://stackoverflow.com/questions/19252852/extra-space-inset-in-scroll-view-at-run-time

參考:

http://stackoverflow.com/questions/20630059/why-uiscrollview-is-leaving-space-from-top-in-ios-6-and-ios-7

posted @ 2015-08-17 08:34  blfshiye  阅读(185)  评论(0编辑  收藏  举报