iOS 7 — navigationController is setting the contentInset and ContentOffset of my UIScrollView

Try setting self.automaticallyAdjustsScrollViewInsets = NO in your main view controller.
This was introduced in iOS 7 so you might want to wrap that with an iOS version check, if you are supporting iOS 6 and below.

原文地址:https://www.cnblogs.com/qike/p/5383205.html