UIScrollView出现位移问题

啦啦啦啦啦~~~

UINavigationController和UIScrollView一起使用时会导致UIScrollView位置偏移

情况:UINavigationController的视图上的第一个子视图为UIScrollView时

原理:由于状态条20px的高度加上导航条44px的高度,UIScrollView就会往下偏移64px的位置

解决方法:设置UIViewController的automaticallyAdjustsScrollViewInsets属性为NO
原文地址:https://www.cnblogs.com/xs514521/p/5208526.html