UIScrollView adjusts contentOffset when contentSize changes
Occurs when pushing a UIViewController containing a UIScrollView using a UINavigationController. iOS 11+ Solution 1 (Swift Code): scrollView.contentInsetAdjustmentBehavior = .never Solution 2 (Storyboard) iOS 7 Solution 1 (Code) Set @property(nonatomic, assign) BOOL automaticallyAdjustsScrollViewInsets to NO. Solution 2 (Storyboard) Uncheck the Adjust Scroll View Insets iOS 6 Solution (Code) Set the UIScrollView‘s property contentOffset and contentInset … Read more