iOS7 中间UIViewControllers配置automaticallyAdjustsScrollViewInsets。假设YES。scrollview它会根据status bar, navigation bar以及tool bar要么tab bar自己主动的高度调节。
能够通过在storyboard的右側进行设置。在Attributes Inspector中。不勾选“Adjust Scroll View Insets”。
watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd2lsbHlhbmc1MTk=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">
翻译自:
http://*.com/questions/19252852/extra-space-inset-in-scroll-view-at-run-time
參考:
http://*.com/questions/20630059/why-uiscrollview-is-leaving-space-from-top-in-ios-6-and-ios-7