情況是這樣的:
我有一個UINavigationController,設置爲self.window的root視圖, 然後有一個UIVIewController是UINavigtionController的根視圖.
然後在UIViewController中加入一個ScrollView 在ScrollView中加入一個view.
此時發現. scrollView並沒有自動下移64像素,而 ScrollView中的子視圖VIew自動下移了64個像素.
上圖:
// 解決方法
self.automaticallyAdjustsScrollViewInsets = NO