Not sure how to explain this, simply when seguing from one controller the scroll view is lower on the screen than from another segue where it is correct.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Set this 2 scrollview property and check it.
self.scrollView.contentOffset = CGPointZero;
self.scrollView.contentInset = UIEdgeInsetsZero;
Check this answer it may help you UIScrollView adjusts contentOffset when contentSize changes
回答2:
Select your view controller which has lower scroll view and unselect Adjust Scroll View Insets
See below image:
or you can do it programmatically
self.scrollView.contentOffset = CGPointZero;
self.scrollView.contentInset = UIEdgeInsetsZero;