使用

automaticallyAdjustsScrollViewInsets

属性(默认为YES)

一般scrollview在xib中的子ui会在y = 20 显示