iOS7 中的UIViewControllers设置了automaticallyAdjustsScrollViewInsets。如果是YES,scrollview会根据status bar, navigation bar以及tool bar或者tab bar的高度自动调整。可以通过在storyboard的右侧进行设置,在Attributes Inspector中,不勾选“Adjust Scroll View Insets”。
翻译自:
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